fixup: convert seconds with timedelta

This commit is contained in:
tcely 2025-02-19 18:03:17 -05:00 committed by GitHub
parent b01af70098
commit 5f81c3619f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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