From 190412a0aaad3ce03aa718a1b38eef4fcef9ad21 Mon Sep 17 00:00:00 2001 From: tcely Date: Sun, 15 Jun 2025 18:02:46 -0400 Subject: [PATCH] Compare the previous crawl time to the upcoming hour --- tubesync/sync/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/tasks.py b/tubesync/sync/tasks.py index 765d6886..58be48f6 100644 --- a/tubesync/sync/tasks.py +++ b/tubesync/sync/tasks.py @@ -235,7 +235,7 @@ def schedule_indexing(): index_schedule__gt=Val(IndexSchedule.NEVER), ) for source in qs_gen(qs): - previous_run = now - timezone.timedelta( + previous_run = next_hour - timezone.timedelta( seconds=source.index_schedule ) skip_source = (