aa-intel-tool 2.6.1__py3-none-any.whl → 2.6.2__py3-none-any.whl

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 (58) hide show
  1. aa_intel_tool/__init__.py +1 -1
  2. aa_intel_tool/helper/eve_character.py +24 -36
  3. aa_intel_tool/helper/static_files.py +2 -2
  4. aa_intel_tool/locale/cs_CZ/LC_MESSAGES/django.po +9 -9
  5. aa_intel_tool/locale/de/LC_MESSAGES/django.mo +0 -0
  6. aa_intel_tool/locale/de/LC_MESSAGES/django.po +13 -13
  7. aa_intel_tool/locale/django.pot +10 -10
  8. aa_intel_tool/locale/es/LC_MESSAGES/django.po +9 -9
  9. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  10. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +13 -13
  11. aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +9 -9
  12. aa_intel_tool/locale/ja/LC_MESSAGES/django.po +9 -9
  13. aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +9 -9
  14. aa_intel_tool/locale/nl_NL/LC_MESSAGES/django.po +9 -9
  15. aa_intel_tool/locale/pl_PL/LC_MESSAGES/django.po +9 -9
  16. aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
  17. aa_intel_tool/locale/ru/LC_MESSAGES/django.po +13 -13
  18. aa_intel_tool/locale/sk/LC_MESSAGES/django.po +9 -9
  19. aa_intel_tool/locale/uk/LC_MESSAGES/django.mo +0 -0
  20. aa_intel_tool/locale/uk/LC_MESSAGES/django.po +15 -15
  21. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +9 -9
  22. aa_intel_tool/parser/general.py +11 -16
  23. aa_intel_tool/parser/helper/db.py +8 -11
  24. aa_intel_tool/parser/module/chatlist.py +97 -126
  25. aa_intel_tool/parser/module/dscan.py +115 -147
  26. aa_intel_tool/parser/module/fleetcomp.py +85 -102
  27. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +6 -19
  28. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +1 -1
  29. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -1
  30. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +104 -64
  31. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js.map +1 -1
  32. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +2 -2
  33. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +1 -1
  34. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +43 -43
  35. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js.map +1 -1
  36. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +31 -7
  37. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
  38. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
  39. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +51 -51
  40. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js.map +1 -1
  41. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +9 -3
  42. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +1 -1
  43. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -1
  44. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +53 -31
  45. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +1 -1
  46. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -1
  47. aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html +1 -1
  48. aa_intel_tool/tests/test-data/dscan.txt +250 -0
  49. aa_intel_tool/tests/test_admin.py +50 -38
  50. aa_intel_tool/tests/test_helper_eve_character.py +405 -0
  51. aa_intel_tool/tests/test_models.py +188 -4
  52. aa_intel_tool/tests/test_parser_general.py +771 -0
  53. aa_intel_tool/tests/test_parser_module_chatlist.py +154 -0
  54. {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/METADATA +1 -1
  55. {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/RECORD +57 -55
  56. aa_intel_tool/tests/test_parser.py +0 -135
  57. {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/WHEEL +0 -0
  58. {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/licenses/LICENSE +0 -0
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: AA Intel Tool 2.5.1\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-intel-tool/issues\n"
12
- "POT-Creation-Date: 2025-03-07 15:55+0100\n"
12
+ "POT-Creation-Date: 2025-04-09 11:22+0200\n"
13
13
  "PO-Revision-Date: 2024-12-02 17:40+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-intel-tool/ko/>\n"
@@ -162,33 +162,33 @@ msgstr "스캔 데이터"
162
162
  msgid "No suitable parser found. Input is not a supported intel type or malformed …"
163
163
  msgstr "지원하는 파서를 찾을 수 없습니다. 지원하지 않는 인텔 타입이거나, 잘못된 형식입니다…"
164
164
 
165
- #: aa_intel_tool/parser/general.py:80
165
+ #: aa_intel_tool/parser/general.py:63
166
166
  msgid "No data to parse …"
167
167
  msgstr "가져올 데이터가 없습니다…"
168
168
 
169
- #: aa_intel_tool/parser/module/chatlist.py:65
169
+ #: aa_intel_tool/parser/module/chatlist.py:60
170
170
  msgid "Something went wrong while fetching the character information from ESI."
171
171
  msgstr "ESI에서 캐릭터 정보를 가져오는 중 오류가 발생했습니다."
172
172
 
173
- #: aa_intel_tool/parser/module/chatlist.py:76
173
+ #: aa_intel_tool/parser/module/chatlist.py:67
174
174
  msgid "Character unknown to ESI."
175
175
  msgstr "ESI에 등록되지 않은 캐릭터입니다."
176
176
 
177
- #: aa_intel_tool/parser/module/chatlist.py:278
177
+ #: aa_intel_tool/parser/module/chatlist.py:256
178
178
  msgid "The chat list module is currently disabled."
179
179
  msgstr "챗 리스트 모듈이 비활성화된 상태입니다."
180
180
 
181
- #: aa_intel_tool/parser/module/chatlist.py:299
181
+ #: aa_intel_tool/parser/module/chatlist.py:275
182
182
  #, python-brace-format
183
183
  msgid "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit."
184
184
  msgid_plural "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilots per scan. Your list of pilots exceeds this limit."
185
185
  msgstr[0] "챗 스캔 파일럿 수는 최대 {max_allowed_pilots}명으로 제한되어 있습니다. 입력한 파일럿 수가 제한을 초과합니다."
186
186
 
187
- #: aa_intel_tool/parser/module/dscan.py:350
187
+ #: aa_intel_tool/parser/module/dscan.py:362
188
188
  msgid "The D-Scan module is currently disabled."
189
189
  msgstr "전방위 스캐너 모듈이 비활성화된 상태입니다."
190
190
 
191
- #: aa_intel_tool/parser/module/fleetcomp.py:187
191
+ #: aa_intel_tool/parser/module/fleetcomp.py:181
192
192
  msgid "The fleet composition module is currently disabled."
193
193
  msgstr "함대 구성 모듈이 비활성화된 상태입니다."
194
194
 
@@ -389,7 +389,7 @@ msgstr "데이터 없음."
389
389
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html:5
390
390
  #, fuzzy
391
391
  #| msgid "Scan taken at (Eve Time)"
392
- msgid "Scan taken at (Eve time)"
392
+ msgid "Scan taken at (EVE time)"
393
393
  msgstr "스캔 시각 (이브 시간)"
394
394
 
395
395
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: AA Intel Tool 2.5.1\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-intel-tool/issues\n"
10
- "POT-Creation-Date: 2025-03-07 15:55+0100\n"
10
+ "POT-Creation-Date: 2025-04-09 11:22+0200\n"
11
11
  "PO-Revision-Date: 2024-05-10 14:07+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-intel-tool/nl/>\n"
@@ -160,34 +160,34 @@ msgstr ""
160
160
  msgid "No suitable parser found. Input is not a supported intel type or malformed …"
161
161
  msgstr ""
162
162
 
163
- #: aa_intel_tool/parser/general.py:80
163
+ #: aa_intel_tool/parser/general.py:63
164
164
  msgid "No data to parse …"
165
165
  msgstr ""
166
166
 
167
- #: aa_intel_tool/parser/module/chatlist.py:65
167
+ #: aa_intel_tool/parser/module/chatlist.py:60
168
168
  msgid "Something went wrong while fetching the character information from ESI."
169
169
  msgstr ""
170
170
 
171
- #: aa_intel_tool/parser/module/chatlist.py:76
171
+ #: aa_intel_tool/parser/module/chatlist.py:67
172
172
  msgid "Character unknown to ESI."
173
173
  msgstr ""
174
174
 
175
- #: aa_intel_tool/parser/module/chatlist.py:278
175
+ #: aa_intel_tool/parser/module/chatlist.py:256
176
176
  msgid "The chat list module is currently disabled."
177
177
  msgstr ""
178
178
 
179
- #: aa_intel_tool/parser/module/chatlist.py:299
179
+ #: aa_intel_tool/parser/module/chatlist.py:275
180
180
  #, python-brace-format
181
181
  msgid "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit."
182
182
  msgid_plural "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilots per scan. Your list of pilots exceeds this limit."
183
183
  msgstr[0] ""
184
184
  msgstr[1] ""
185
185
 
186
- #: aa_intel_tool/parser/module/dscan.py:350
186
+ #: aa_intel_tool/parser/module/dscan.py:362
187
187
  msgid "The D-Scan module is currently disabled."
188
188
  msgstr ""
189
189
 
190
- #: aa_intel_tool/parser/module/fleetcomp.py:187
190
+ #: aa_intel_tool/parser/module/fleetcomp.py:181
191
191
  msgid "The fleet composition module is currently disabled."
192
192
  msgstr ""
193
193
 
@@ -384,7 +384,7 @@ msgid "No data."
384
384
  msgstr ""
385
385
 
386
386
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html:5
387
- msgid "Scan taken at (Eve time)"
387
+ msgid "Scan taken at (EVE time)"
388
388
  msgstr ""
389
389
 
390
390
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Intel Tool 2.5.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-intel-tool/issues\n"
9
- "POT-Creation-Date: 2025-03-07 15:55+0100\n"
9
+ "POT-Creation-Date: 2025-04-09 11:22+0200\n"
10
10
  "PO-Revision-Date: 2024-05-10 14:07+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-intel-tool/pl/>\n"
@@ -159,23 +159,23 @@ msgstr ""
159
159
  msgid "No suitable parser found. Input is not a supported intel type or malformed …"
160
160
  msgstr ""
161
161
 
162
- #: aa_intel_tool/parser/general.py:80
162
+ #: aa_intel_tool/parser/general.py:63
163
163
  msgid "No data to parse …"
164
164
  msgstr ""
165
165
 
166
- #: aa_intel_tool/parser/module/chatlist.py:65
166
+ #: aa_intel_tool/parser/module/chatlist.py:60
167
167
  msgid "Something went wrong while fetching the character information from ESI."
168
168
  msgstr ""
169
169
 
170
- #: aa_intel_tool/parser/module/chatlist.py:76
170
+ #: aa_intel_tool/parser/module/chatlist.py:67
171
171
  msgid "Character unknown to ESI."
172
172
  msgstr ""
173
173
 
174
- #: aa_intel_tool/parser/module/chatlist.py:278
174
+ #: aa_intel_tool/parser/module/chatlist.py:256
175
175
  msgid "The chat list module is currently disabled."
176
176
  msgstr ""
177
177
 
178
- #: aa_intel_tool/parser/module/chatlist.py:299
178
+ #: aa_intel_tool/parser/module/chatlist.py:275
179
179
  #, python-brace-format
180
180
  msgid "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit."
181
181
  msgid_plural "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilots per scan. Your list of pilots exceeds this limit."
@@ -183,11 +183,11 @@ msgstr[0] ""
183
183
  msgstr[1] ""
184
184
  msgstr[2] ""
185
185
 
186
- #: aa_intel_tool/parser/module/dscan.py:350
186
+ #: aa_intel_tool/parser/module/dscan.py:362
187
187
  msgid "The D-Scan module is currently disabled."
188
188
  msgstr ""
189
189
 
190
- #: aa_intel_tool/parser/module/fleetcomp.py:187
190
+ #: aa_intel_tool/parser/module/fleetcomp.py:181
191
191
  msgid "The fleet composition module is currently disabled."
192
192
  msgstr ""
193
193
 
@@ -386,7 +386,7 @@ msgid "No data."
386
386
  msgstr ""
387
387
 
388
388
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html:5
389
- msgid "Scan taken at (Eve time)"
389
+ msgid "Scan taken at (EVE time)"
390
390
  msgstr ""
391
391
 
392
392
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
@@ -2,23 +2,23 @@
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  # Nikolay <nick.postnikov@gmail.com>, 2023, 2024.
5
- # Peter Pfeufer <info@ppfeufer.de>, 2023, 2024.
5
+ # Peter Pfeufer <info@ppfeufer.de>, 2023, 2024, 2025.
6
6
  # Max <mark25@inbox.ru>, 2023, 2024.
7
7
  # Roycce_ <malyasov.roma@mail.ru>, 2024.
8
8
  msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: AA Intel Tool 2.5.1\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-intel-tool/issues\n"
12
- "POT-Creation-Date: 2025-03-07 15:55+0100\n"
13
- "PO-Revision-Date: 2024-06-06 14:27+0000\n"
14
- "Last-Translator: Roycce_ <malyasov.roma@mail.ru>\n"
12
+ "POT-Creation-Date: 2025-04-09 11:22+0200\n"
13
+ "PO-Revision-Date: 2025-03-25 13:24+0000\n"
14
+ "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
15
15
  "Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-intel-tool/ru/>\n"
16
16
  "Language: ru\n"
17
17
  "MIME-Version: 1.0\n"
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
21
- "X-Generator: Weblate 5.5.5\n"
21
+ "X-Generator: Weblate 5.10.4\n"
22
22
 
23
23
  #: aa_intel_tool/__init__.py:9
24
24
  #: aa_intel_tool/templates/aa_intel_tool/base.html:7
@@ -162,23 +162,23 @@ msgstr "Данные скана"
162
162
  msgid "No suitable parser found. Input is not a supported intel type or malformed …"
163
163
  msgstr "Не найден подходящий анализатор. Формат входных данных не поддерживается или данные неполны …"
164
164
 
165
- #: aa_intel_tool/parser/general.py:80
165
+ #: aa_intel_tool/parser/general.py:63
166
166
  msgid "No data to parse …"
167
167
  msgstr "Нет данных для анализа …"
168
168
 
169
- #: aa_intel_tool/parser/module/chatlist.py:65
169
+ #: aa_intel_tool/parser/module/chatlist.py:60
170
170
  msgid "Something went wrong while fetching the character information from ESI."
171
171
  msgstr "Что-то пошло не так при загрузке информации о персонаже через ESI."
172
172
 
173
- #: aa_intel_tool/parser/module/chatlist.py:76
173
+ #: aa_intel_tool/parser/module/chatlist.py:67
174
174
  msgid "Character unknown to ESI."
175
175
  msgstr "Персонаж не известен для ESI."
176
176
 
177
- #: aa_intel_tool/parser/module/chatlist.py:278
177
+ #: aa_intel_tool/parser/module/chatlist.py:256
178
178
  msgid "The chat list module is currently disabled."
179
179
  msgstr "Анализатор списка чата отключен."
180
180
 
181
- #: aa_intel_tool/parser/module/chatlist.py:299
181
+ #: aa_intel_tool/parser/module/chatlist.py:275
182
182
  #, python-brace-format
183
183
  msgid "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit."
184
184
  msgid_plural "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilots per scan. Your list of pilots exceeds this limit."
@@ -187,11 +187,11 @@ msgstr[1] "Анализатор чата в настоящее время огр
187
187
  msgstr[2] "Анализатор чата в настоящее время ограничен максимум {max_allowed_pilots} пилотами в скане. Размер вашего списка превышает это ограничение."
188
188
  msgstr[3] "Анализатор чата в настоящее время ограничен максимум одним пилотом в скане. Размер вашего списка превышает это ограничение."
189
189
 
190
- #: aa_intel_tool/parser/module/dscan.py:350
190
+ #: aa_intel_tool/parser/module/dscan.py:362
191
191
  msgid "The D-Scan module is currently disabled."
192
192
  msgstr "Анализатор подскана отключен."
193
193
 
194
- #: aa_intel_tool/parser/module/fleetcomp.py:187
194
+ #: aa_intel_tool/parser/module/fleetcomp.py:181
195
195
  msgid "The fleet composition module is currently disabled."
196
196
  msgstr "Анализатор состава флота отключен."
197
197
 
@@ -392,7 +392,7 @@ msgid "No data."
392
392
  msgstr "Нет данных."
393
393
 
394
394
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html:5
395
- msgid "Scan taken at (Eve time)"
395
+ msgid "Scan taken at (EVE time)"
396
396
  msgstr "Скан выполнен (время EVE)"
397
397
 
398
398
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: AA Intel Tool 2.5.1\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-intel-tool/issues\n"
10
- "POT-Creation-Date: 2025-03-07 15:55+0100\n"
10
+ "POT-Creation-Date: 2025-04-09 11:22+0200\n"
11
11
  "PO-Revision-Date: 2024-05-10 14:07+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-intel-tool/sk/>\n"
@@ -160,23 +160,23 @@ msgstr ""
160
160
  msgid "No suitable parser found. Input is not a supported intel type or malformed …"
161
161
  msgstr ""
162
162
 
163
- #: aa_intel_tool/parser/general.py:80
163
+ #: aa_intel_tool/parser/general.py:63
164
164
  msgid "No data to parse …"
165
165
  msgstr ""
166
166
 
167
- #: aa_intel_tool/parser/module/chatlist.py:65
167
+ #: aa_intel_tool/parser/module/chatlist.py:60
168
168
  msgid "Something went wrong while fetching the character information from ESI."
169
169
  msgstr ""
170
170
 
171
- #: aa_intel_tool/parser/module/chatlist.py:76
171
+ #: aa_intel_tool/parser/module/chatlist.py:67
172
172
  msgid "Character unknown to ESI."
173
173
  msgstr ""
174
174
 
175
- #: aa_intel_tool/parser/module/chatlist.py:278
175
+ #: aa_intel_tool/parser/module/chatlist.py:256
176
176
  msgid "The chat list module is currently disabled."
177
177
  msgstr ""
178
178
 
179
- #: aa_intel_tool/parser/module/chatlist.py:299
179
+ #: aa_intel_tool/parser/module/chatlist.py:275
180
180
  #, python-brace-format
181
181
  msgid "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit."
182
182
  msgid_plural "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilots per scan. Your list of pilots exceeds this limit."
@@ -185,11 +185,11 @@ msgstr[1] ""
185
185
  msgstr[2] ""
186
186
  msgstr[3] ""
187
187
 
188
- #: aa_intel_tool/parser/module/dscan.py:350
188
+ #: aa_intel_tool/parser/module/dscan.py:362
189
189
  msgid "The D-Scan module is currently disabled."
190
190
  msgstr ""
191
191
 
192
- #: aa_intel_tool/parser/module/fleetcomp.py:187
192
+ #: aa_intel_tool/parser/module/fleetcomp.py:181
193
193
  msgid "The fleet composition module is currently disabled."
194
194
  msgstr ""
195
195
 
@@ -390,7 +390,7 @@ msgid "No data."
390
390
  msgstr ""
391
391
 
392
392
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html:5
393
- msgid "Scan taken at (Eve time)"
393
+ msgid "Scan taken at (EVE time)"
394
394
  msgstr ""
395
395
 
396
396
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
@@ -7,8 +7,8 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: AA Intel Tool 2.5.1\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-intel-tool/issues\n"
10
- "POT-Creation-Date: 2025-03-07 15:55+0100\n"
11
- "PO-Revision-Date: 2025-02-24 15:17+0000\n"
10
+ "POT-Creation-Date: 2025-04-09 11:22+0200\n"
11
+ "PO-Revision-Date: 2025-03-23 09:24+0000\n"
12
12
  "Last-Translator: M <skrypets@gmail.com>\n"
13
13
  "Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-intel-tool/uk/>\n"
14
14
  "Language: uk\n"
@@ -16,7 +16,7 @@ msgstr ""
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
17
  "Content-Transfer-Encoding: 8bit\n"
18
18
  "Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19
- "X-Generator: Weblate 5.10.1\n"
19
+ "X-Generator: Weblate 5.10.4\n"
20
20
 
21
21
  #: aa_intel_tool/__init__.py:9
22
22
  #: aa_intel_tool/templates/aa_intel_tool/base.html:7
@@ -59,7 +59,7 @@ msgstr ""
59
59
  #: aa_intel_tool/models.py:123
60
60
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:33
61
61
  msgid "Fleet composition"
62
- msgstr ""
62
+ msgstr "Композиція флоту"
63
63
 
64
64
  #: aa_intel_tool/exceptions.py:34
65
65
  #, python-brace-format
@@ -160,23 +160,23 @@ msgstr ""
160
160
  msgid "No suitable parser found. Input is not a supported intel type or malformed …"
161
161
  msgstr ""
162
162
 
163
- #: aa_intel_tool/parser/general.py:80
163
+ #: aa_intel_tool/parser/general.py:63
164
164
  msgid "No data to parse …"
165
165
  msgstr ""
166
166
 
167
- #: aa_intel_tool/parser/module/chatlist.py:65
167
+ #: aa_intel_tool/parser/module/chatlist.py:60
168
168
  msgid "Something went wrong while fetching the character information from ESI."
169
169
  msgstr ""
170
170
 
171
- #: aa_intel_tool/parser/module/chatlist.py:76
171
+ #: aa_intel_tool/parser/module/chatlist.py:67
172
172
  msgid "Character unknown to ESI."
173
173
  msgstr ""
174
174
 
175
- #: aa_intel_tool/parser/module/chatlist.py:278
175
+ #: aa_intel_tool/parser/module/chatlist.py:256
176
176
  msgid "The chat list module is currently disabled."
177
177
  msgstr ""
178
178
 
179
- #: aa_intel_tool/parser/module/chatlist.py:299
179
+ #: aa_intel_tool/parser/module/chatlist.py:275
180
180
  #, python-brace-format
181
181
  msgid "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit."
182
182
  msgid_plural "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilots per scan. Your list of pilots exceeds this limit."
@@ -185,11 +185,11 @@ msgstr[1] ""
185
185
  msgstr[2] ""
186
186
  msgstr[3] ""
187
187
 
188
- #: aa_intel_tool/parser/module/dscan.py:350
188
+ #: aa_intel_tool/parser/module/dscan.py:362
189
189
  msgid "The D-Scan module is currently disabled."
190
190
  msgstr ""
191
191
 
192
- #: aa_intel_tool/parser/module/fleetcomp.py:187
192
+ #: aa_intel_tool/parser/module/fleetcomp.py:181
193
193
  msgid "The fleet composition module is currently disabled."
194
194
  msgstr ""
195
195
 
@@ -256,7 +256,7 @@ msgstr "Відправити"
256
256
 
257
257
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:56
258
258
  msgid "Working on it, please be patient …"
259
- msgstr ""
259
+ msgstr "В процесі, будь ласка, зачекайте…"
260
260
 
261
261
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:58
262
262
  msgid "Detecting the intel type"
@@ -375,7 +375,7 @@ msgstr ""
375
375
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html:21
376
376
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html:19
377
377
  msgid "Ship class"
378
- msgstr ""
378
+ msgstr "Клас корабля"
379
379
 
380
380
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html:30
381
381
  msgid "Total mass (in kg):"
@@ -390,12 +390,12 @@ msgid "No data."
390
390
  msgstr ""
391
391
 
392
392
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html:5
393
- msgid "Scan taken at (Eve time)"
393
+ msgid "Scan taken at (EVE time)"
394
394
  msgstr ""
395
395
 
396
396
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
397
397
  msgid "Fleet details"
398
- msgstr ""
398
+ msgstr "Деталі флоту"
399
399
 
400
400
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:12
401
401
  msgid "Pilots in fleet"
@@ -12,7 +12,7 @@ msgid ""
12
12
  msgstr ""
13
13
  "Project-Id-Version: AA Intel Tool 2.5.1\n"
14
14
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-intel-tool/issues\n"
15
- "POT-Creation-Date: 2025-03-07 15:55+0100\n"
15
+ "POT-Creation-Date: 2025-04-09 11:22+0200\n"
16
16
  "PO-Revision-Date: 2025-02-18 09:17+0000\n"
17
17
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
18
18
  "Language-Team: Chinese (Simplified Han script) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-intel-tool/zh_Hans/>\n"
@@ -165,33 +165,33 @@ msgstr ""
165
165
  msgid "No suitable parser found. Input is not a supported intel type or malformed …"
166
166
  msgstr ""
167
167
 
168
- #: aa_intel_tool/parser/general.py:80
168
+ #: aa_intel_tool/parser/general.py:63
169
169
  msgid "No data to parse …"
170
170
  msgstr ""
171
171
 
172
- #: aa_intel_tool/parser/module/chatlist.py:65
172
+ #: aa_intel_tool/parser/module/chatlist.py:60
173
173
  msgid "Something went wrong while fetching the character information from ESI."
174
174
  msgstr ""
175
175
 
176
- #: aa_intel_tool/parser/module/chatlist.py:76
176
+ #: aa_intel_tool/parser/module/chatlist.py:67
177
177
  msgid "Character unknown to ESI."
178
178
  msgstr ""
179
179
 
180
- #: aa_intel_tool/parser/module/chatlist.py:278
180
+ #: aa_intel_tool/parser/module/chatlist.py:256
181
181
  msgid "The chat list module is currently disabled."
182
182
  msgstr ""
183
183
 
184
- #: aa_intel_tool/parser/module/chatlist.py:299
184
+ #: aa_intel_tool/parser/module/chatlist.py:275
185
185
  #, python-brace-format
186
186
  msgid "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit."
187
187
  msgid_plural "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilots per scan. Your list of pilots exceeds this limit."
188
188
  msgstr[0] ""
189
189
 
190
- #: aa_intel_tool/parser/module/dscan.py:350
190
+ #: aa_intel_tool/parser/module/dscan.py:362
191
191
  msgid "The D-Scan module is currently disabled."
192
192
  msgstr ""
193
193
 
194
- #: aa_intel_tool/parser/module/fleetcomp.py:187
194
+ #: aa_intel_tool/parser/module/fleetcomp.py:181
195
195
  msgid "The fleet composition module is currently disabled."
196
196
  msgstr ""
197
197
 
@@ -386,7 +386,7 @@ msgid "No data."
386
386
  msgstr ""
387
387
 
388
388
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html:5
389
- msgid "Scan taken at (Eve time)"
389
+ msgid "Scan taken at (EVE time)"
390
390
  msgstr ""
391
391
 
392
392
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
@@ -57,24 +57,19 @@ def parse_intel(form_data: str) -> str:
57
57
  :return:
58
58
  :rtype:
59
59
  """
60
-
61
60
  scan_data = form_data.splitlines()
62
61
 
63
- if len(scan_data) > 0:
64
- try:
65
- intel_type = check_intel_type(scan_data=scan_data)
66
- except ParserError as exc:
67
- raise ParserError(message=exc.message) from exc
68
-
69
- try:
70
- new_scan = SUPPORTED_INTEL_TYPES[intel_type]["parser"](scan_data=scan_data)
71
- except ParserError as exc:
72
- # Re-raise the Exception
73
- raise ParserError(message=exc.message) from exc
62
+ if not scan_data:
63
+ raise ParserError(message=_("No data to parse …"))
74
64
 
75
- new_scan.raw_data = form_data
76
- new_scan.save()
65
+ try:
66
+ intel_type = check_intel_type(scan_data=scan_data)
67
+ new_scan = SUPPORTED_INTEL_TYPES[intel_type]["parser"](scan_data=scan_data)
68
+ except ParserError as exc:
69
+ # Re-raise the Exception
70
+ raise ParserError(message=exc.message) from exc
77
71
 
78
- return new_scan.hash
72
+ new_scan.raw_data = form_data
73
+ new_scan.save()
79
74
 
80
- raise ParserError(message=_("No data to parse …"))
75
+ return new_scan.hash
@@ -18,23 +18,20 @@ def safe_scan_to_db(scan_type: Scan.Type, parsed_data: dict) -> Scan:
18
18
  :rtype:
19
19
  """
20
20
 
21
- # Creating a new Scan object
22
- new_scan = Scan(scan_type=scan_type)
23
- new_scan.save()
21
+ # Creating a new Scan object and saving it
22
+ new_scan = Scan.objects.create(scan_type=scan_type)
24
23
 
25
- # Creating the associated ScanData objects
26
- scan_data_objects = []
27
- for scan_data in parsed_data.values():
28
- scan_data_objects.append(
24
+ # Creating and saving the associated ScanData objects
25
+ ScanData.objects.bulk_create(
26
+ [
29
27
  ScanData(
30
28
  scan=new_scan,
31
29
  section=scan_data["section"],
32
30
  processed_data=scan_data["data"],
33
31
  )
34
- )
35
-
36
- # Saving ScanData objects
37
- ScanData.objects.bulk_create(scan_data_objects)
32
+ for scan_data in parsed_data.values()
33
+ ]
34
+ )
38
35
 
39
36
  # Return the Scan object
40
37
  return new_scan