updatestyles: Do not update the same styles twice

This commit is contained in:
Raphael Michel
2021-05-05 22:34:43 +02:00
parent 6820044461
commit 8c101dc64c
2 changed files with 9 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ class Command(BaseCommand):
if options.get('organizer'):
ostore = ostore.filter(object__slug=options['organizer'])
for es in ostore:
regenerate_organizer_css.apply_async(args=(es.object_id,))
regenerate_organizer_css.apply_async(args=(es.object_id,), kwargs={'regenerate_events': False})
estore = Event_SettingsStore.objects.filter(key="presale_css_file").order_by('-object__date_from')
if options.get('event'):