Skip to content

Commit

Permalink
trim description before looking for changes. No one cares about extra…
Browse files Browse the repository at this point in the history
… blank lines.
  • Loading branch information
CarlFK committed Jul 21, 2024
1 parent 597eb0c commit 353a4c7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dj/scripts/addeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def add_eps(self, schedule, show):
continue

if f=="description":
a1 = a1.replace('\r','')
a2 = a2.replace('\r','')
a1 = a1.strip().replace('\r','')
a2 = a2.strip().replace('\r','')

if ((a1 or a2) and (a1 != a2)) or (a1 is None and a2 == False):
diff=True
Expand Down Expand Up @@ -5227,7 +5227,10 @@ def unpage(url, session, payload, headers):
conf_url=f"https://www.{conf_slug}.org/{year}/program/talks/{slug}"
event['conf_url'] = conf_url

# event['description'] = youtubes[event['conf_key']]['description_youtube']
if self.options.show == 'pyohio_2024':
# event['description'] = youtubes[event['conf_key']]['description_youtube']
event['description'] = youtubes[event['conf_key']]['description_text']

event['duration'] = "00:{}:00".format(event['duration'])

event['released'] = not event['released'] # do_not_record
Expand Down

0 comments on commit 353a4c7

Please sign in to comment.