From 19983f06cbf5b9faee57996875fd61bb615e4d1a Mon Sep 17 00:00:00 2001 From: tcely Date: Sat, 14 Jun 2025 12:03:55 -0400 Subject: [PATCH] Add the `delay_to_eta` function --- tubesync/common/huey.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tubesync/common/huey.py b/tubesync/common/huey.py index 543790aa..e080d97f 100644 --- a/tubesync/common/huey.py +++ b/tubesync/common/huey.py @@ -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, /): return dict( scheduled=(q.scheduled_count(), q.scheduled(),),