aa-intel-tool 1.2.0__tar.gz → 2.0.0b1__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 (146) hide show
  1. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/.gitignore +2 -1
  2. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/PKG-INFO +31 -36
  3. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/README.md +24 -30
  4. aa_intel_tool-2.0.0b1/aa_intel_tool/__init__.py +9 -0
  5. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/app_settings.py +32 -1
  6. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/auth_hooks.py +1 -1
  7. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/constants.py +0 -13
  8. aa_intel_tool-2.0.0b1/aa_intel_tool/locale/es/LC_MESSAGES/django.mo +0 -0
  9. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/es/LC_MESSAGES/django.po +6 -4
  10. aa_intel_tool-2.0.0b1/aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  11. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +8 -6
  12. aa_intel_tool-2.0.0b1/aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  13. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +8 -8
  14. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/management/commands/aa_intel_tool_load_eve_types.py +1 -1
  15. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/parser/module/chatlist.py +17 -7
  16. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/parser/module/dscan.py +36 -33
  17. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/parser/module/fleetcomp.py +11 -5
  18. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +138 -0
  19. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +2 -0
  20. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -0
  21. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +12 -12
  22. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +2 -0
  23. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +1 -0
  24. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +33 -33
  25. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +2 -0
  26. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -0
  27. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +13 -13
  28. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +2 -0
  29. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -0
  30. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +17 -19
  31. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +2 -0
  32. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -0
  33. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.js +1 -1
  34. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js +2 -0
  35. aa_intel_tool-2.0.0b1/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js.map +1 -0
  36. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/base.html +9 -4
  37. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-chatscan-js.html +1 -1
  38. aa_intel_tool-2.0.0b1/aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-css.html +3 -0
  39. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-dscan-js.html +1 -1
  40. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-fleetcomp-js.html +1 -1
  41. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-js.html +1 -1
  42. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/body/scan-retention-note.html +1 -1
  43. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/footer/app-translation-footer.html +1 -1
  44. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/index/form.html +21 -22
  45. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/buttons.html +6 -5
  46. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/alliances.html +7 -7
  47. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/corporations.html +7 -7
  48. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/pilots.html +7 -7
  49. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid/items.html +7 -7
  50. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid.html +2 -2
  51. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html +7 -7
  52. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html +7 -7
  53. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown.html +1 -1
  54. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/system-information.html +2 -2
  55. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html +1 -1
  56. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html +6 -6
  57. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html +1 -1
  58. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/participation.html +1 -1
  59. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/views/index.html +4 -9
  60. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/views/scan/chatlist.html +2 -2
  61. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/views/scan/dscan.html +2 -2
  62. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/views/scan/fleetcomp.html +2 -2
  63. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_access.py +24 -13
  64. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_auth_hooks.py +18 -12
  65. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_templatetags.py +2 -3
  66. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/utils.py +14 -0
  67. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/views/general.py +3 -1
  68. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/pyproject.toml +10 -4
  69. aa_intel_tool-1.2.0/aa_intel_tool/__init__.py +0 -14
  70. aa_intel_tool-1.2.0/aa_intel_tool/locale/es/LC_MESSAGES/django.mo +0 -0
  71. aa_intel_tool-1.2.0/aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  72. aa_intel_tool-1.2.0/aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  73. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.css +0 -13
  74. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css +0 -2
  75. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css.map +0 -1
  76. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +0 -278
  77. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +0 -2
  78. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +0 -1
  79. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +0 -2
  80. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +0 -1
  81. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +0 -2
  82. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +0 -1
  83. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +0 -2
  84. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +0 -1
  85. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +0 -2
  86. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +0 -1
  87. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js +0 -2
  88. aa_intel_tool-1.2.0/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js.map +0 -1
  89. aa_intel_tool-1.2.0/aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-css.html +0 -4
  90. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/LICENSE +0 -0
  91. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/admin.py +0 -0
  92. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/apps.py +0 -0
  93. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/exceptions.py +0 -0
  94. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/form.py +0 -0
  95. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/helper/data_structure.py +0 -0
  96. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/helper/eve_character.py +0 -0
  97. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/de/LC_MESSAGES/django.mo +0 -0
  98. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/de/LC_MESSAGES/django.po +0 -0
  99. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/django.pot +0 -0
  100. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/it_IT/LC_MESSAGES/django.mo +0 -0
  101. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +0 -0
  102. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/ja/LC_MESSAGES/django.mo +0 -0
  103. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/ja/LC_MESSAGES/django.po +0 -0
  104. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
  105. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +0 -0
  106. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
  107. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/ru/LC_MESSAGES/django.po +0 -0
  108. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/uk/LC_MESSAGES/django.mo +0 -0
  109. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/locale/uk/LC_MESSAGES/django.po +0 -0
  110. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/migrations/0001_initial.py +0 -0
  111. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/migrations/0002_alter_scan_raw_data.py +0 -0
  112. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/migrations/__init__.py +0 -0
  113. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/models.py +0 -0
  114. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/parser/__init__.py +0 -0
  115. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/parser/general.py +0 -0
  116. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/parser/helper/db.py +0 -0
  117. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/scripts/drop_tables.sql +0 -0
  118. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +0 -0
  119. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js +0 -0
  120. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js.map +0 -0
  121. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +0 -0
  122. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js +0 -0
  123. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js.map +0 -0
  124. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +0 -0
  125. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js +0 -0
  126. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js.map +0 -0
  127. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tasks.py +0 -0
  128. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-js-l10n.html +0 -0
  129. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/templatetags/__init__.py +0 -0
  130. /aa_intel_tool-1.2.0/aa_intel_tool/templatetags/inteltool_versioned_static.py → /aa_intel_tool-2.0.0b1/aa_intel_tool/templatetags/aa_intel_tool.py +0 -0
  131. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/__init__.py +0 -0
  132. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test-data/chatscan-faulty.txt +0 -0
  133. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test-data/chatscan.txt +0 -0
  134. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test-data/dscan-german-client.txt +0 -0
  135. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test-data/dscan-russian-client.txt +0 -0
  136. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test-data/dscan.txt +0 -0
  137. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test-data/fleetcomp.txt +0 -0
  138. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_admin.py +0 -0
  139. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_app_settings.py +0 -0
  140. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_helper_data_structures.py +0 -0
  141. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_models.py +0 -0
  142. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_parser.py +0 -0
  143. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/tests/test_parser_helper_db.py +0 -0
  144. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/urls.py +0 -0
  145. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/views/__init__.py +0 -0
  146. {aa_intel_tool-1.2.0 → aa_intel_tool-2.0.0b1}/aa_intel_tool/views/ajax.py +0 -0
@@ -4,7 +4,7 @@
4
4
  .idea/
5
5
  .tox/
6
6
  htmlcov/
7
- pastebin/
7
+ node_modules/
8
8
 
9
9
  *.log
10
10
  *.tmp
@@ -13,3 +13,4 @@ pastebin/
13
13
  __pycache__
14
14
  .coverage
15
15
  /coverage.xml
16
+ alliance_auth.sqlite3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aa-intel-tool
3
- Version: 1.2.0
3
+ Version: 2.0.0b1
4
4
  Summary: A simple parser for D-Scans and more for Alliance Auth
5
5
  Project-URL: Changelog, https://github.com/ppfeufer/aa-intel-tool/blob/master/CHANGELOG.md
6
6
  Project-URL: Documentation, https://github.com/ppfeufer/aa-intel-tool/blob/master/README.md
@@ -687,7 +687,7 @@ License-File: LICENSE
687
687
  Keywords: allianceauth,eveonline
688
688
  Classifier: Environment :: Web Environment
689
689
  Classifier: Framework :: Django
690
- Classifier: Framework :: Django :: 4.0
690
+ Classifier: Framework :: Django :: 4.2
691
691
  Classifier: Intended Audience :: Developers
692
692
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
693
693
  Classifier: Operating System :: OS Independent
@@ -697,15 +697,16 @@ Classifier: Programming Language :: Python :: 3.8
697
697
  Classifier: Programming Language :: Python :: 3.9
698
698
  Classifier: Programming Language :: Python :: 3.10
699
699
  Classifier: Programming Language :: Python :: 3.11
700
+ Classifier: Programming Language :: Python :: 3.12
700
701
  Classifier: Topic :: Internet :: WWW/HTTP
701
702
  Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
702
703
  Requires-Python: >=3.8
703
704
  Requires-Dist: allianceauth-app-utils>=1.19.1
704
- Requires-Dist: allianceauth>=3.6.1
705
+ Requires-Dist: allianceauth>=4.0.0b1
705
706
  Requires-Dist: django-eveuniverse>=1.3
706
- Provides-Extra: tests-allianceauth-stable
707
- Requires-Dist: coverage; extra == 'tests-allianceauth-stable'
708
- Requires-Dist: django-webtest; extra == 'tests-allianceauth-stable'
707
+ Provides-Extra: tests-allianceauth-latest
708
+ Requires-Dist: coverage; extra == 'tests-allianceauth-latest'
709
+ Requires-Dist: django-webtest; extra == 'tests-allianceauth-latest'
709
710
  Description-Content-Type: text/markdown
710
711
 
711
712
  # AA Intel Tool<a name="aa-intel-tool"></a>
@@ -758,15 +759,6 @@ ______________________________________________________________________
758
759
 
759
760
  ______________________________________________________________________
760
761
 
761
- > **Note**
762
- >
763
- > This app makes use of a feature introduced with Alliance Auth v3.6.1, meaning,
764
- > installing this app will pull in Alliance Auth v3.6.1 unsupervised if you haven't
765
- > updated yet.
766
- >
767
- > **Please make sure to update Allianceauth to version 3.6.1 or higher before you
768
- > install this app to avoid any complications.**
769
-
770
762
  ## Overview<a name="overview"></a>
771
763
 
772
764
  ### Features<a name="features"></a>
@@ -793,18 +785,21 @@ See [Settings](#settings) section for details.
793
785
 
794
786
  ## Installation<a name="installation"></a>
795
787
 
796
- > **Note**
788
+ > \[!NOTE\]
797
789
  >
798
- > Please make sure you meet all preconditions before you proceed:
790
+ > **AA Intel Tool needs at least Alliance Auth v4.0.0!**
799
791
  >
800
- > - AA Intel Tool is a plugin for [Alliance Auth]. If you don't have Alliance Auth running
801
- > already, please install it first before proceeding. (see the official
802
- > [Alliance Auth installation guide] for details)
803
- > - AA Intel Tool needs at least **Alliance Auth v3.6.1**. Please make sure to meet this
804
- > condition _before_ installing this app, otherwise an update to Alliance Auth will
805
- > be pulled in unsupervised.
806
- > - AA Intel Tool needs [Eve Universe] to function. Please make sure it is installed,
807
- > before continuing.
792
+ > Please make sure to update your Alliance Auth instance _before_ you install this
793
+ > module or update to the latest version, otherwise an update to Alliance Auth will
794
+ > be pulled in unsupervised.
795
+
796
+ **Important**: Please make sure you meet all preconditions before you proceed:
797
+
798
+ - AA Intel Tool is a plugin for [Alliance Auth]. If you don't have Alliance Auth running
799
+ already, please install it first before proceeding. (see the official
800
+ [Alliance Auth installation guide] for details)
801
+ - AA Intel Tool needs [Eve Universe] to function. Please make sure it is installed,
802
+ before continuing.
808
803
 
809
804
  ### Step 1: Install the Package<a name="step-1-install-the-package"></a>
810
805
 
@@ -929,14 +924,14 @@ your `local.py`.
929
924
  > Enable the chat scan module at your own risk. This module has the potential to
930
925
  > generate a huge number of ESI calls, which CCP might not be too happy about.
931
926
 
932
- | Name | Description | Default |
933
- | :-------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------- | :------ |
934
- | INTELTOOL_ENABLE_MODULE_CHATSCAN | Enable or disable the chat scan module. | False |
935
- | INTELTOOL_ENABLE_MODULE_DSCAN | Enable or disable the d-scan module. | True |
936
- | INTELTOOL_ENABLE_MODULE_FLEETCOMP | Enable or disable the fleet composition module. | True |
937
- | INTELTOOL_SCAN_RETENTION_TIME | Set the time in days for how long the scans will be kept in the database. Set to 0 to keep scans indefinitely. | 30 |
938
- | INTELTOOL_CHATSCAN_MAX_PILOTS | Set the limit of pilots for chat scans, since these can take quite a long time to process. Set to 0 to disable. | 500 |
939
- | INTELTOOL_DSCAN_GRID_SIZE | Set the grid size for D-Scans. This defines <br/>the size of the grid in km in which ships and structures are considered to be "on grid" | 10000 |
927
+ | Name | Description | Default |
928
+ | :-------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------- | :------ |
929
+ | INTELTOOL_ENABLE_MODULE_CHATSCAN | Enable or disable the chat scan module. | False |
930
+ | INTELTOOL_ENABLE_MODULE_DSCAN | Enable or disable the d-scan module. | True |
931
+ | INTELTOOL_ENABLE_MODULE_FLEETCOMP | Enable or disable the fleet composition module. | True |
932
+ | INTELTOOL_SCAN_RETENTION_TIME | Set the time in days for how long the scans will be kept in the database. Set to 0 to keep scans indefinitely. | 30 |
933
+ | INTELTOOL_CHATSCAN_MAX_PILOTS | Set the limit of pilots for chat scans, since these can take quite a long time to process. Set to 0 to disable. | 500 |
934
+ | INTELTOOL_DSCAN_GRID_SIZE | Set the grid size for D-Scans.<br/>This defines the size of the grid in km in which ships and structures are considered to be "on grid" | 10000 |
940
935
 
941
936
  > **Note**
942
937
  >
@@ -991,9 +986,9 @@ Please make sure to read the [Contribution Guidelines].\
991
986
  [code of conduct]: https://github.com/ppfeufer/aa-intel-tool/blob/master/CODE_OF_CONDUCT.md
992
987
  [contribution guidelines]: https://github.com/ppfeufer/aa-intel-tool/blob/master/CONTRIBUTING.md "Contribution Guidelines"
993
988
  [eve universe]: https://gitlab.com/ErikKalkoken/django-eveuniverse "Eve Universe"
994
- [image: chat scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/chat-scan.jpg "Chat Scan Module"
995
- [image: d-scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/d-scan.jpg "D-Scan Module"
996
- [image: fleet composition module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/fleet-composition.jpg "Fleet Composition Module"
989
+ [image: chat scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/representation/chat-scan.jpg "Chat Scan Module"
990
+ [image: d-scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/representation/d-scan.jpg "D-Scan Module"
991
+ [image: fleet composition module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/representation/fleet-composition.jpg "Fleet Composition Module"
997
992
  [ppfeufer on ko-fi]: https://ko-fi.com/ppfeufer "Buy Me a Coffee!"
998
993
  [pre-commit.ci status]: https://results.pre-commit.ci/latest/github/ppfeufer/aa-intel-tool/master "pre-commit.ci"
999
994
  [support discord]: https://discord.gg/zmh52wnfvM "Alliance Auth Community Apps Support Discord"
@@ -48,15 +48,6 @@ ______________________________________________________________________
48
48
 
49
49
  ______________________________________________________________________
50
50
 
51
- > **Note**
52
- >
53
- > This app makes use of a feature introduced with Alliance Auth v3.6.1, meaning,
54
- > installing this app will pull in Alliance Auth v3.6.1 unsupervised if you haven't
55
- > updated yet.
56
- >
57
- > **Please make sure to update Allianceauth to version 3.6.1 or higher before you
58
- > install this app to avoid any complications.**
59
-
60
51
  ## Overview<a name="overview"></a>
61
52
 
62
53
  ### Features<a name="features"></a>
@@ -83,18 +74,21 @@ See [Settings](#settings) section for details.
83
74
 
84
75
  ## Installation<a name="installation"></a>
85
76
 
86
- > **Note**
77
+ > \[!NOTE\]
87
78
  >
88
- > Please make sure you meet all preconditions before you proceed:
79
+ > **AA Intel Tool needs at least Alliance Auth v4.0.0!**
89
80
  >
90
- > - AA Intel Tool is a plugin for [Alliance Auth]. If you don't have Alliance Auth running
91
- > already, please install it first before proceeding. (see the official
92
- > [Alliance Auth installation guide] for details)
93
- > - AA Intel Tool needs at least **Alliance Auth v3.6.1**. Please make sure to meet this
94
- > condition _before_ installing this app, otherwise an update to Alliance Auth will
95
- > be pulled in unsupervised.
96
- > - AA Intel Tool needs [Eve Universe] to function. Please make sure it is installed,
97
- > before continuing.
81
+ > Please make sure to update your Alliance Auth instance _before_ you install this
82
+ > module or update to the latest version, otherwise an update to Alliance Auth will
83
+ > be pulled in unsupervised.
84
+
85
+ **Important**: Please make sure you meet all preconditions before you proceed:
86
+
87
+ - AA Intel Tool is a plugin for [Alliance Auth]. If you don't have Alliance Auth running
88
+ already, please install it first before proceeding. (see the official
89
+ [Alliance Auth installation guide] for details)
90
+ - AA Intel Tool needs [Eve Universe] to function. Please make sure it is installed,
91
+ before continuing.
98
92
 
99
93
  ### Step 1: Install the Package<a name="step-1-install-the-package"></a>
100
94
 
@@ -219,14 +213,14 @@ your `local.py`.
219
213
  > Enable the chat scan module at your own risk. This module has the potential to
220
214
  > generate a huge number of ESI calls, which CCP might not be too happy about.
221
215
 
222
- | Name | Description | Default |
223
- | :-------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------- | :------ |
224
- | INTELTOOL_ENABLE_MODULE_CHATSCAN | Enable or disable the chat scan module. | False |
225
- | INTELTOOL_ENABLE_MODULE_DSCAN | Enable or disable the d-scan module. | True |
226
- | INTELTOOL_ENABLE_MODULE_FLEETCOMP | Enable or disable the fleet composition module. | True |
227
- | INTELTOOL_SCAN_RETENTION_TIME | Set the time in days for how long the scans will be kept in the database. Set to 0 to keep scans indefinitely. | 30 |
228
- | INTELTOOL_CHATSCAN_MAX_PILOTS | Set the limit of pilots for chat scans, since these can take quite a long time to process. Set to 0 to disable. | 500 |
229
- | INTELTOOL_DSCAN_GRID_SIZE | Set the grid size for D-Scans. This defines <br/>the size of the grid in km in which ships and structures are considered to be "on grid" | 10000 |
216
+ | Name | Description | Default |
217
+ | :-------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------- | :------ |
218
+ | INTELTOOL_ENABLE_MODULE_CHATSCAN | Enable or disable the chat scan module. | False |
219
+ | INTELTOOL_ENABLE_MODULE_DSCAN | Enable or disable the d-scan module. | True |
220
+ | INTELTOOL_ENABLE_MODULE_FLEETCOMP | Enable or disable the fleet composition module. | True |
221
+ | INTELTOOL_SCAN_RETENTION_TIME | Set the time in days for how long the scans will be kept in the database. Set to 0 to keep scans indefinitely. | 30 |
222
+ | INTELTOOL_CHATSCAN_MAX_PILOTS | Set the limit of pilots for chat scans, since these can take quite a long time to process. Set to 0 to disable. | 500 |
223
+ | INTELTOOL_DSCAN_GRID_SIZE | Set the grid size for D-Scans.<br/>This defines the size of the grid in km in which ships and structures are considered to be "on grid" | 10000 |
230
224
 
231
225
  > **Note**
232
226
  >
@@ -281,9 +275,9 @@ Please make sure to read the [Contribution Guidelines].\
281
275
  [code of conduct]: https://github.com/ppfeufer/aa-intel-tool/blob/master/CODE_OF_CONDUCT.md
282
276
  [contribution guidelines]: https://github.com/ppfeufer/aa-intel-tool/blob/master/CONTRIBUTING.md "Contribution Guidelines"
283
277
  [eve universe]: https://gitlab.com/ErikKalkoken/django-eveuniverse "Eve Universe"
284
- [image: chat scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/chat-scan.jpg "Chat Scan Module"
285
- [image: d-scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/d-scan.jpg "D-Scan Module"
286
- [image: fleet composition module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/fleet-composition.jpg "Fleet Composition Module"
278
+ [image: chat scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/representation/chat-scan.jpg "Chat Scan Module"
279
+ [image: d-scan module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/representation/d-scan.jpg "D-Scan Module"
280
+ [image: fleet composition module]: https://raw.githubusercontent.com/ppfeufer/aa-intel-tool/master/docs/images/representation/fleet-composition.jpg "Fleet Composition Module"
287
281
  [ppfeufer on ko-fi]: https://ko-fi.com/ppfeufer "Buy Me a Coffee!"
288
282
  [pre-commit.ci status]: https://results.pre-commit.ci/latest/github/ppfeufer/aa-intel-tool/master "pre-commit.ci"
289
283
  [support discord]: https://discord.gg/zmh52wnfvM "Alliance Auth Community Apps Support Discord"
@@ -0,0 +1,9 @@
1
+ """
2
+ App init
3
+ """
4
+
5
+ # Django
6
+ from django.utils.translation import gettext_lazy as _
7
+
8
+ __version__ = "2.0.0-beta.1"
9
+ __title__ = _("Intel Parser")
@@ -2,11 +2,23 @@
2
2
  App settings
3
3
  """
4
4
 
5
+ # Standard Library
6
+ from enum import IntEnum
7
+
8
+ # Alliance Auth
9
+ from allianceauth.services.hooks import get_extension_logger
10
+
5
11
  # Alliance Auth (External Libs)
6
12
  from app_utils.app_settings import clean_setting
13
+ from app_utils.logging import LoggerAddTag
14
+
15
+ # AA Intel Tool
16
+ from aa_intel_tool import __title__
17
+
18
+ logger = LoggerAddTag(my_logger=get_extension_logger(name=__name__), prefix=__title__)
7
19
 
8
20
 
9
- class AppSettings: # pylint: disable=too-few-public-methods
21
+ class AppSettings:
10
22
  """
11
23
  App settings from local.py
12
24
  """
@@ -50,3 +62,22 @@ class AppSettings: # pylint: disable=too-few-public-methods
50
62
  INTELTOOL_DSCAN_GRID_SIZE = clean_setting(
51
63
  name="INTELTOOL_DSCAN_GRID_SIZE", default_value=10000, required_type=int
52
64
  )
65
+
66
+
67
+ class AdditionalEveCategoryId(IntEnum):
68
+ """
69
+ Eve category IDs which are not covered by Eve Universe
70
+ Unfortunately Python doesn't allow to extend eveuniverse.constants.EveCategoryId
71
+ """
72
+
73
+ DEPLOYABLE = 22
74
+ STARBASE = 23
75
+ SCANNER_PROBE = 479
76
+
77
+
78
+ class UpwellStructureId(IntEnum):
79
+ """
80
+ Upwell Structure IDs
81
+ """
82
+
83
+ ANSIBLEX_JUMP_GATE = 35841
@@ -20,7 +20,7 @@ class AaIntelToolMenuItem(MenuItemHook): # pylint: disable=too-few-public-metho
20
20
  MenuItemHook.__init__(
21
21
  self,
22
22
  text=__title__,
23
- classes="fas fa-clipboard-list fa-fw",
23
+ classes="fa-solid fa-clipboard-list",
24
24
  url_name="aa_intel_tool:intel_tool_index",
25
25
  navactive=["aa_intel_tool:"],
26
26
  )
@@ -4,7 +4,6 @@ App constants
4
4
 
5
5
  # Standard Library
6
6
  import re
7
- from enum import IntEnum
8
7
 
9
8
  # Django
10
9
  from django.utils.text import slugify
@@ -35,17 +34,6 @@ distance_units_off_grid: str = """
35
34
  distance_units = f"{distance_units_on_grid}|{distance_units_off_grid}"
36
35
 
37
36
 
38
- class AdditionalEveCategoryId(IntEnum):
39
- """
40
- Eve category IDs which are not covered by Eve Universe
41
- Unfortunately Python doesn't allow to extend eveuniverse.constants.EveCategoryId
42
- """
43
-
44
- DEPLOYABLE = 22
45
- STARBASE = 23
46
- SCANNER_PROBE = 479
47
-
48
-
49
37
  # Pre-compiled regex patterns used throughout the app
50
38
  REGEX_PATTERN = {
51
39
  "chatlist": re.compile(pattern=r"(?im)^[a-zA-Z0-9\u0080-\uFFFF -_]{3,37}$"),
@@ -64,7 +52,6 @@ REGEX_PATTERN = {
64
52
  ),
65
53
  }
66
54
 
67
-
68
55
  # Supported intel types and their parameters
69
56
  SUPPORTED_INTEL_TYPES = {
70
57
  "chatlist": {
@@ -3,13 +3,15 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  # Zigor Fernandez Moreno <sietehierros@gmail.com>, 2023.
5
5
  # Peter Pfeufer <info@ppfeufer.de>, 2023.
6
+ # Geovanny David Morales De la cruz <moralesgeovanny1996@gmail.com>, 2023.
6
7
  msgid ""
7
8
  msgstr ""
8
9
  "Project-Id-Version: PACKAGE VERSION\n"
9
10
  "Report-Msgid-Bugs-To: \n"
10
11
  "POT-Creation-Date: 2023-10-04 17:44+0200\n"
11
- "PO-Revision-Date: 2023-10-04 15:46+0000\n"
12
- "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
+ "PO-Revision-Date: 2023-10-25 07:04+0000\n"
13
+ "Last-Translator: Geovanny David Morales De la cruz <moralesgeovanny1996@gmail"
14
+ ".com>\n"
13
15
  "Language-Team: Spanish <https://weblate.ppfeufer.de/projects/"
14
16
  "alliance-auth-apps/aa-intel-tool/es/>\n"
15
17
  "Language: es\n"
@@ -17,7 +19,7 @@ msgstr ""
17
19
  "Content-Type: text/plain; charset=UTF-8\n"
18
20
  "Content-Transfer-Encoding: 8bit\n"
19
21
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
20
- "X-Generator: Weblate 5.0.2\n"
22
+ "X-Generator: Weblate 5.1\n"
21
23
 
22
24
  #: aa_intel_tool/__init__.py:12
23
25
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -234,7 +236,7 @@ msgstr ""
234
236
  #: aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-js-l10n.html:19
235
237
  msgctxt "Decimal separator"
236
238
  msgid "."
237
- msgstr ""
239
+ msgstr "."
238
240
 
239
241
  #: aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-js-l10n.html:20
240
242
  msgctxt "Thousands separator"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
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
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
4
+ # erka Ekanon <M6musicT@hotmail.fr>, 2024.
5
+ # Peter Pfeufer <info@ppfeufer.de>, 2024.
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2023-10-04 17:44+0200\n"
11
- "PO-Revision-Date: 2023-10-04 15:46+0000\n"
12
- "Last-Translator: Anonymous <noreply@weblate.org>\n"
11
+ "PO-Revision-Date: 2024-01-12 19:05+0000\n"
12
+ "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
13
13
  "Language-Team: French <https://weblate.ppfeufer.de/projects/"
14
14
  "alliance-auth-apps/aa-intel-tool/fr/>\n"
15
15
  "Language: fr_FR\n"
@@ -17,7 +17,7 @@ msgstr ""
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=2; plural=n > 1;\n"
20
- "X-Generator: Weblate 5.0.2\n"
20
+ "X-Generator: Weblate 5.3.1\n"
21
21
 
22
22
  #: aa_intel_tool/__init__.py:12
23
23
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -303,10 +303,12 @@ msgid ""
303
303
  "Do you want to help translate this app into your language or improve the "
304
304
  "existing translation?"
305
305
  msgstr ""
306
+ "Voulez-vous aider à traduire cette application dans votre langue ou "
307
+ "améliorer la traduction existante ?"
306
308
 
307
309
  #: aa_intel_tool/templates/aa_intel_tool/partials/footer/app-translation-footer.html:8
308
310
  msgid "Join our team of translators!"
309
- msgstr ""
311
+ msgstr "Rejoignez notre équipe de traducteurs !"
310
312
 
311
313
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:10
312
314
  msgid "What can I paste?"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
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
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
4
+ # Dehao Wu <wudehao2000@163.com>, 2024.
5
+ # Faer Yili <yilifaer@gmail.com>, 2024.
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2023-10-04 17:44+0200\n"
11
- "PO-Revision-Date: 2023-10-04 15:47+0000\n"
12
- "Last-Translator: Anonymous <noreply@weblate.org>\n"
11
+ "PO-Revision-Date: 2024-01-11 21:04+0000\n"
12
+ "Last-Translator: Dehao Wu <wudehao2000@163.com>\n"
13
13
  "Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/"
14
14
  "alliance-auth-apps/aa-intel-tool/zh_Hans/>\n"
15
15
  "Language: zh_Hans\n"
@@ -17,7 +17,7 @@ msgstr ""
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=1; plural=0;\n"
20
- "X-Generator: Weblate 5.0.2\n"
20
+ "X-Generator: Weblate 5.3.1\n"
21
21
 
22
22
  #: aa_intel_tool/__init__.py:12
23
23
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -300,11 +300,11 @@ msgstr[0] ""
300
300
  msgid ""
301
301
  "Do you want to help translate this app into your language or improve the "
302
302
  "existing translation?"
303
- msgstr ""
303
+ msgstr "您想帮助将此应用程序翻译成您的母语或改进现有的翻译吗?"
304
304
 
305
305
  #: aa_intel_tool/templates/aa_intel_tool/partials/footer/app-translation-footer.html:8
306
306
  msgid "Join our team of translators!"
307
- msgstr ""
307
+ msgstr "加入我们的翻译团队吧!"
308
308
 
309
309
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:10
310
310
  msgid "What can I paste?"
@@ -450,7 +450,7 @@ msgstr ""
450
450
 
451
451
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html:18
452
452
  msgid "Ship type"
453
- msgstr ""
453
+ msgstr "舰船类型"
454
454
 
455
455
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html:36
456
456
  msgid "No data."
@@ -15,7 +15,7 @@ from eveuniverse.constants import EveCategoryId
15
15
 
16
16
  # AA Intel Tool
17
17
  from aa_intel_tool import __title__
18
- from aa_intel_tool.constants import AdditionalEveCategoryId
18
+ from aa_intel_tool.app_settings import AdditionalEveCategoryId
19
19
 
20
20
  logger = LoggerAddTag(logging.getLogger(__name__), __title__)
21
21
 
@@ -41,9 +41,10 @@ def _get_character_info(scan_data: list) -> QuerySet[EveCharacter]:
41
41
  :rtype:
42
42
  """
43
43
 
44
+ fetch_from_eveuniverse = False
45
+
44
46
  # Check if we have to bother Eve Universe or if we have all characters already
45
47
  # Excluding corporation_id=1000001 (Doomheim) to force an update here …
46
- fetch_from_eveuniverse = False
47
48
  try:
48
49
  eve_characters = EveCharacter.objects.filter(
49
50
  character_name__in=scan_data
@@ -54,6 +55,7 @@ def _get_character_info(scan_data: list) -> QuerySet[EveCharacter]:
54
55
  if len(scan_data) != eve_characters.count():
55
56
  fetch_from_eveuniverse = True
56
57
 
58
+ # Fetch the character information from Eve Universe if needed
57
59
  if fetch_from_eveuniverse:
58
60
  try:
59
61
  eve_character_ids = (
@@ -111,6 +113,7 @@ def _parse_alliance_info(
111
113
  :rtype:
112
114
  """
113
115
 
116
+ # Build alliance info dict
114
117
  if eve_character.alliance_id is None:
115
118
  alliance_info = _get_unaffiliated_alliance_info()
116
119
  else:
@@ -151,6 +154,7 @@ def _parse_corporation_info(
151
154
  "logo": eve_character.corporation_logo_url_32,
152
155
  }
153
156
 
157
+ # Add eve links if requested
154
158
  if with_evelinks:
155
159
  corporation_info["dotlan"] = dotlan.corporation_url(
156
160
  name=eve_character.corporation_name
@@ -159,6 +163,7 @@ def _parse_corporation_info(
159
163
  eve_id=eve_character.corporation_id
160
164
  )
161
165
 
166
+ # Add alliance info if requested
162
167
  if with_alliance_info:
163
168
  corporation_info["alliance"] = _parse_alliance_info(
164
169
  eve_character=eve_character, with_evelinks=with_evelinks
@@ -208,17 +213,21 @@ def _parse_chatscan_data(eve_characters: QuerySet[EveCharacter]) -> dict:
208
213
  corporation_info = {}
209
214
  character_info = {}
210
215
 
216
+ # Loop through the characters
211
217
  for eve_character in eve_characters:
212
218
  eve_character__alliance_name = "Unaffiliated"
213
219
 
220
+ # If the character is in an alliance, use the alliance name
214
221
  if eve_character.alliance_name is not None:
215
222
  eve_character__alliance_name = eve_character.alliance_name
216
223
 
217
- if eve_character__alliance_name not in counter:
218
- counter[eve_character__alliance_name] = 0
224
+ counter[eve_character__alliance_name] = (
225
+ counter.get(eve_character__alliance_name, 0) + 1
226
+ )
219
227
 
220
- if eve_character.corporation_name not in counter:
221
- counter[eve_character.corporation_name] = 0
228
+ counter[eve_character.corporation_name] = (
229
+ counter.get(eve_character.corporation_name, 0) + 1
230
+ )
222
231
 
223
232
  # Alliance Info
224
233
  if eve_character__alliance_name not in alliance_info:
@@ -238,12 +247,10 @@ def _parse_chatscan_data(eve_characters: QuerySet[EveCharacter]) -> dict:
238
247
  )
239
248
 
240
249
  # Update the counter
241
- counter[eve_character__alliance_name] += 1
242
250
  alliance_info[eve_character__alliance_name]["count"] = counter[
243
251
  eve_character__alliance_name
244
252
  ]
245
253
 
246
- counter[eve_character.corporation_name] += 1
247
254
  corporation_info[eve_character.corporation_name]["count"] = counter[
248
255
  eve_character.corporation_name
249
256
  ]
@@ -273,12 +280,14 @@ def parse(
273
280
 
274
281
  message = _("The chat list module is currently disabled.")
275
282
 
283
+ # Only parse the chat scan if the module is enabled
276
284
  if AppSettings.INTELTOOL_ENABLE_MODULE_CHATSCAN is True:
277
285
  logger.debug(msg=f"{len(scan_data)} name(s) to work through …")
278
286
 
279
287
  pilots_in_scan = len(scan_data)
280
288
  max_allowed_pilots = AppSettings.INTELTOOL_CHATSCAN_MAX_PILOTS
281
289
 
290
+ # Check if the number of pilots in the scan exceeds the maximum allowed number
282
291
  if 0 < max_allowed_pilots < pilots_in_scan and ignore_limit is False:
283
292
  logger.debug(
284
293
  msg=(
@@ -287,6 +296,7 @@ def parse(
287
296
  )
288
297
  )
289
298
 
299
+ # Throw a tantrum
290
300
  raise ParserError(
291
301
  message=ngettext(
292
302
  singular=f"Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot per scan. Your list of pilots exceeds this limit.", # pylint: disable=line-too-long