mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 13:06:34 +00:00
Remove the td
function
It is no longer being used for a default argument value.
This commit is contained in:
parent
0b233be517
commit
459cb4b891
@ -586,7 +586,6 @@ def rename_all_media_for_source(source_id):
|
||||
|
||||
@background(schedule=0)
|
||||
def wait_for_media_premiere(media_id):
|
||||
td = lambda p, now=timezone.now(): (p - now)
|
||||
hours = lambda td: 1+int((24*td.days)+(td.seconds/(60*60)))
|
||||
|
||||
try:
|
||||
@ -603,6 +602,6 @@ def wait_for_media_premiere(media_id):
|
||||
media.save()
|
||||
else:
|
||||
media.manual_skip = True
|
||||
media.title = _(f'Premieres in {hours(td(media.published, now))} hours')
|
||||
media.title = _(f'Premieres in {hours(media.published - now)} hours')
|
||||
media.save()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user