handle media which may not have a published date set for some erroneous reason, related to #77

This commit is contained in:
meeb
2021-03-08 11:55:23 +11:00
parent 8525d920a0
commit df9316bede
2 changed files with 31 additions and 23 deletions

View File

@@ -19,6 +19,7 @@ class Command(BaseCommand):
# Iter all tasks
for source in Source.objects.all():
# Recreate the initial indexing task
log.info(f'Resetting tasks for source: {source}')
verbose_name = _('Index media from source "{}"')
index_source_task(
str(source.pk),