Allow operation_names to be a list instead of a singular item

This commit is contained in:
Joakim Hellsén 2026-01-17 07:05:41 +01:00
commit 65a7622582
No known key found for this signature in database
7 changed files with 104 additions and 42 deletions

View file

@ -836,10 +836,10 @@ class Command(BaseCommand):
if (
response.extensions
and response.extensions.operation_name
and campaign_obj.operation_name != response.extensions.operation_name
and response.extensions.operation_name not in campaign_obj.operation_names
):
campaign_obj.operation_name = response.extensions.operation_name
campaign_obj.save(update_fields=["operation_name"])
campaign_obj.operation_names.append(response.extensions.operation_name)
campaign_obj.save(update_fields=["operation_names"])
if drop_campaign.time_based_drops:
self._process_time_based_drops(