fixup: convert seconds with timedelta

This commit is contained in:
tcely authored and GitHub committed 2025-02-19 18:03:17 -05:00
1 parent b01af70098
commit 5f81c3619f
1 file changed
+1 -1
+1 -1
View File
@@ -1048,7 +1048,7 @@ class Media(models.Model):
now = timezone.now()
formats_seconds = data.get('formats_epoch', metadata_seconds)
metadata_dt = self.metadata_published(formats_seconds)
if (now - metadata_dt) < self.source.index_schedule:
if (now - metadata_dt) < timedelta(seconds=self.source.index_schedule):
return False
self.skip = False