mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-19 11:36:37 +00:00
Add the delay_to_eta
function
This commit is contained in:
parent
2378ee8649
commit
19983f06cb
@ -1,5 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
def delay_to_eta(delay, /):
|
||||||
|
from huey.utils import normalize_time
|
||||||
|
return normalize_time(delay=delay)
|
||||||
|
|
||||||
|
|
||||||
def h_q_dict(q, /):
|
def h_q_dict(q, /):
|
||||||
return dict(
|
return dict(
|
||||||
scheduled=(q.scheduled_count(), q.scheduled(),),
|
scheduled=(q.scheduled_count(), q.scheduled(),),
|
||||||
|
Loading…
Reference in New Issue
Block a user