diff --git a/CHANGELOG.md b/CHANGELOG.md index 173f3ed1..ac99a1d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,11 @@ Section Order: +### Fixed + +- Class 'Iterable' does not define '__sub__', so the '-' operator cannot be used on + its instances + ## [4.1.0] - 2026-05-19 ### Changed diff --git a/sovtimer/locale/django.pot b/sovtimer/locale/django.pot index 2249b896..075aad67 100644 --- a/sovtimer/locale/django.pot +++ b/sovtimer/locale/django.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: AA Sov Timer 4.1.0\n" "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n" -"POT-Creation-Date: 2026-05-19 16:49+0200\n" +"POT-Creation-Date: 2026-05-21 19:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -35,23 +35,23 @@ msgstr "" msgid "Alliances" msgstr "" -#: sovtimer/models.py:160 +#: sovtimer/models.py:161 msgid "Sovereignty structure" msgstr "" -#: sovtimer/models.py:161 +#: sovtimer/models.py:162 msgid "Sovereignty structures" msgstr "" -#: sovtimer/models.py:241 +#: sovtimer/models.py:242 msgid "Sov Hub defense" msgstr "" -#: sovtimer/models.py:269 +#: sovtimer/models.py:270 msgid "Sovereignty campaign" msgstr "" -#: sovtimer/models.py:270 +#: sovtimer/models.py:271 msgid "Sovereignty campaigns" msgstr "" diff --git a/sovtimer/models.py b/sovtimer/models.py index 916fd574..42039324 100644 --- a/sovtimer/models.py +++ b/sovtimer/models.py @@ -84,7 +84,8 @@ def bulk_get_or_create_from_esi( existing_alliance_ids = set( existing_alliances.values_list("alliance_id", flat=True) ) - alliances_to_create = alliance_ids - existing_alliance_ids + + alliances_to_create = set(alliance_ids) - existing_alliance_ids # Create a list of new Alliance instances to be created in bulk new_alliances = []