aa-sov-timer 2.3.1__tar.gz → 2.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/PKG-INFO +1 -1
  2. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/__init__.py +1 -1
  3. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/cs_CZ/LC_MESSAGES/django.po +1 -1
  4. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/de/LC_MESSAGES/django.po +1 -1
  5. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/django.pot +2 -2
  6. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/es/LC_MESSAGES/django.po +1 -1
  7. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/fr_FR/LC_MESSAGES/django.po +1 -1
  8. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/it_IT/LC_MESSAGES/django.po +1 -1
  9. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/ja/LC_MESSAGES/django.po +1 -1
  10. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/ko_KR/LC_MESSAGES/django.po +1 -1
  11. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/nl_NL/LC_MESSAGES/django.po +1 -1
  12. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/pl_PL/LC_MESSAGES/django.po +1 -1
  13. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/ru/LC_MESSAGES/django.po +1 -1
  14. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/sk/LC_MESSAGES/django.po +1 -1
  15. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/uk/LC_MESSAGES/django.po +1 -1
  16. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  17. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tasks.py +16 -10
  18. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/.gitignore +0 -0
  19. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/LICENSE +0 -0
  20. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/README.md +0 -0
  21. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/pyproject.toml +0 -0
  22. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/apps.py +0 -0
  23. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/auth_hooks.py +0 -0
  24. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/constants.py +0 -0
  25. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/helper/static_files.py +0 -0
  26. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/.gitkeep +0 -0
  27. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
  28. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/de/LC_MESSAGES/django.mo +0 -0
  29. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/es/LC_MESSAGES/django.mo +0 -0
  30. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  31. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/it_IT/LC_MESSAGES/django.mo +0 -0
  32. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/ja/LC_MESSAGES/django.mo +0 -0
  33. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
  34. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/nl_NL/LC_MESSAGES/django.mo +0 -0
  35. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/pl_PL/LC_MESSAGES/django.mo +0 -0
  36. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/ru/LC_MESSAGES/django.mo +0 -0
  37. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/sk/LC_MESSAGES/django.mo +0 -0
  38. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/uk/LC_MESSAGES/django.mo +0 -0
  39. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  40. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/management/commands/__init__.py +0 -0
  41. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/management/commands/sovtimer_load_initial_data.py +0 -0
  42. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0001_initial.py +0 -0
  43. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0002_aasovtimercampaigns_aasovtimerstructures.py +0 -0
  44. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0003_auto_20201113_1033.py +0 -0
  45. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0004_auto_20201113_1856.py +0 -0
  46. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0005_auto_20201114_0720.py +0 -0
  47. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0006_rename_models.py +0 -0
  48. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0007_cleanup_models.py +0 -0
  49. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0008_fix_campaign_attackers_score.py +0 -0
  50. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0009_alter_campaign_options_and_more.py +0 -0
  51. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/0010_alter_campaign_event_type.py +0 -0
  52. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/migrations/__init__.py +0 -0
  53. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/models.py +0 -0
  54. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/providers.py +0 -0
  55. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/css/aa-sov-timer.css +0 -0
  56. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/css/aa-sov-timer.min.css +0 -0
  57. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/css/aa-sov-timer.min.css.map +0 -0
  58. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/font/materialicons/v143/MaterialIcons-Regular.woff2 +0 -0
  59. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/font/materialicons/v143/README.md +0 -0
  60. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/images/zkillboard.png +0 -0
  61. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/js/aa-sov-timer.js +0 -0
  62. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/js/aa-sov-timer.min.js +0 -0
  63. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/static/sovtimer/js/aa-sov-timer.min.js.map +0 -0
  64. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templates/sovtimer/base.html +0 -0
  65. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templates/sovtimer/bundles/aa-sov-timer-css.html +0 -0
  66. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templates/sovtimer/bundles/aa-sov-timer-js.html +0 -0
  67. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templates/sovtimer/dashboard.html +0 -0
  68. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templates/sovtimer/partials/dashboard/table.html +0 -0
  69. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templates/sovtimer/partials/footer/app-translation-footer.html +0 -0
  70. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templates/sovtimer/partials/header/h1.html +0 -0
  71. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templatetags/__init__.py +0 -0
  72. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/templatetags/sovtimer.py +0 -0
  73. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/__init__.py +0 -0
  74. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/fixtures/allianceauth.json +0 -0
  75. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/fixtures/load_allianceauth.py +0 -0
  76. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/fixtures/load_sovtimer.py +0 -0
  77. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/fixtures/sovtimer.json +0 -0
  78. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/fixtures/utils.py +0 -0
  79. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/test_ajax_calls.py +0 -0
  80. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/test_integration.py +0 -0
  81. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/test_templatetags.py +0 -0
  82. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/tests/utils.py +0 -0
  83. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/urls.py +0 -0
  84. {aa_sov_timer-2.3.1 → aa_sov_timer-2.3.2}/sovtimer/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aa-sov-timer
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Sov Campaign Timer for Alliance Auth
5
5
  Project-URL: Changelog, https://github.com/ppfeufer/aa-sov-timer/blob/master/CHANGELOG.md
6
6
  Project-URL: Documentation, https://github.com/ppfeufer/aa-sov-timer/blob/master/README.md
@@ -5,5 +5,5 @@ App init
5
5
  # Django
6
6
  from django.utils.translation import gettext_lazy as _
7
7
 
8
- __version__ = "2.3.1"
8
+ __version__ = "2.3.2"
9
9
  __title__ = _("Sovereignty Timers")
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
9
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
9
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
10
10
  "PO-Revision-Date: 2024-07-10 14:26+0000\n"
11
11
  "Last-Translator: Dadas Aideron <dadas.aideron@gmail.com>\n"
12
12
  "Language-Team: Czech <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/cs/>\n"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
9
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
9
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
10
10
  "PO-Revision-Date: 2024-12-15 10:37+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: German <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/de/>\n"
@@ -6,9 +6,9 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: AA Sov Timer 2.3.1\n"
9
+ "Project-Id-Version: AA Sov Timer 2.3.2\n"
10
10
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
11
- "POT-Creation-Date: 2025-02-26 18:42+0100\n"
11
+ "POT-Creation-Date: 2025-02-27 11:22+0100\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
10
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
10
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
11
11
  "PO-Revision-Date: 2024-12-15 10:37+0000\n"
12
12
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
13
13
  "Language-Team: Spanish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/es/>\n"
@@ -10,7 +10,7 @@ msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
12
12
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
13
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
13
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
14
14
  "PO-Revision-Date: 2024-12-15 10:37+0000\n"
15
15
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
16
16
  "Language-Team: French <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/fr/>\n"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
9
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
9
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
10
10
  "PO-Revision-Date: 2024-12-22 21:15+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Italian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/it/>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
10
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
10
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
11
11
  "PO-Revision-Date: 2024-08-06 03:28+0000\n"
12
12
  "Last-Translator: Deleted User <noreply+44@weblate.org>\n"
13
13
  "Language-Team: Japanese <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/ja/>\n"
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
12
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
12
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
13
13
  "PO-Revision-Date: 2024-12-15 10:37+0000\n"
14
14
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
15
15
  "Language-Team: Korean <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/ko/>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
10
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
10
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
11
11
  "PO-Revision-Date: 2024-05-10 14:12+0000\n"
12
12
  "Last-Translator: Anonymous <noreply@weblate.org>\n"
13
13
  "Language-Team: Dutch <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/nl/>\n"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
9
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
9
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
10
10
  "PO-Revision-Date: 2024-05-10 14:12+0000\n"
11
11
  "Last-Translator: Anonymous <noreply@weblate.org>\n"
12
12
  "Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/pl/>\n"
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
10
10
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
11
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
11
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
12
12
  "PO-Revision-Date: 2024-12-15 10:37+0000\n"
13
13
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
14
14
  "Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/ru/>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
10
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
10
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
11
11
  "PO-Revision-Date: 2024-05-10 14:12+0000\n"
12
12
  "Last-Translator: Anonymous <noreply@weblate.org>\n"
13
13
  "Language-Team: Slovak <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/sk/>\n"
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
10
10
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
11
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
11
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
12
12
  "PO-Revision-Date: 2025-02-24 15:17+0000\n"
13
13
  "Last-Translator: M <skrypets@gmail.com>\n"
14
14
  "Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/uk/>\n"
@@ -10,7 +10,7 @@ msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
12
12
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
13
- "POT-Creation-Date: 2025-02-26 17:41+0100\n"
13
+ "POT-Creation-Date: 2025-02-26 18:42+0100\n"
14
14
  "PO-Revision-Date: 2024-05-15 09:21+0000\n"
15
15
  "Last-Translator: SAM_FPS <sam_fps@163.com>\n"
16
16
  "Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/zh_Hans/>\n"
@@ -75,12 +75,12 @@ def update_sov_campaigns() -> None:
75
75
  msg=f"Number of sovereignty campaigns from ESI: {len(campaigns_from_esi or [])}"
76
76
  )
77
77
 
78
+ campaigns = []
79
+
78
80
  if campaigns_from_esi:
79
81
  logger.debug(msg="Updating sovereignty campaigns …")
80
82
 
81
83
  with transaction.atomic():
82
- campaigns = []
83
-
84
84
  for campaign in campaigns_from_esi:
85
85
  EveEntity.objects.get_or_create(id=campaign["defender_id"])
86
86
 
@@ -120,16 +120,22 @@ def update_sov_campaigns() -> None:
120
120
  )
121
121
  )
122
122
 
123
- Campaign.objects.all().delete()
124
- Campaign.objects.bulk_create(
125
- objs=campaigns,
126
- batch_size=500,
127
- ignore_conflicts=True,
128
- )
123
+ Campaign.objects.all().delete()
124
+
125
+ if not campaigns:
126
+ logger.info(msg="No sovereignty campaigns found, nothing to update.")
127
+
128
+ return
129
+
130
+ Campaign.objects.bulk_create(
131
+ objs=campaigns,
132
+ batch_size=500,
133
+ ignore_conflicts=True,
134
+ )
129
135
 
130
- EveEntity.objects.bulk_update_new_esi()
136
+ EveEntity.objects.bulk_update_new_esi()
131
137
 
132
- logger.info(msg=f"{len(campaigns)} sovereignty campaigns updated from ESI.")
138
+ logger.info(msg=f"{len(campaigns)} sovereignty campaigns updated from ESI.")
133
139
 
134
140
 
135
141
  @shared_task(**TASK_DEFAULTS_ONCE)
File without changes
File without changes
File without changes