aa-ledger 0.9.8__py3-none-any.whl → 0.9.9.1__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 (78) hide show
  1. {aa_ledger-0.9.8.dist-info → aa_ledger-0.9.9.1.dist-info}/METADATA +3 -1
  2. {aa_ledger-0.9.8.dist-info → aa_ledger-0.9.9.1.dist-info}/RECORD +78 -76
  3. ledger/__init__.py +9 -9
  4. ledger/api/api_helper/billboard_helper.py +55 -26
  5. ledger/api/ledger/admin.py +1 -1
  6. ledger/app_settings.py +18 -11
  7. ledger/constants.py +5 -0
  8. ledger/decorators.py +92 -11
  9. ledger/helpers/alliance.py +119 -91
  10. ledger/helpers/character.py +260 -252
  11. ledger/helpers/core.py +565 -565
  12. ledger/helpers/corporation.py +237 -187
  13. ledger/helpers/etag.py +2 -1
  14. ledger/helpers/ref_type.py +475 -475
  15. ledger/locale/cs_CZ/LC_MESSAGES/django.po +942 -932
  16. ledger/locale/de/LC_MESSAGES/django.mo +0 -0
  17. ledger/locale/de/LC_MESSAGES/django.po +961 -945
  18. ledger/locale/django.pot +942 -932
  19. ledger/locale/es/LC_MESSAGES/django.po +943 -933
  20. ledger/locale/fr_FR/LC_MESSAGES/django.po +942 -932
  21. ledger/locale/it_IT/LC_MESSAGES/django.po +942 -932
  22. ledger/locale/ja/LC_MESSAGES/django.po +943 -933
  23. ledger/locale/ko_KR/LC_MESSAGES/django.po +942 -932
  24. ledger/locale/nl_NL/LC_MESSAGES/django.po +942 -932
  25. ledger/locale/pl_PL/LC_MESSAGES/django.po +942 -932
  26. ledger/locale/ru/LC_MESSAGES/django.po +945 -935
  27. ledger/locale/sk/LC_MESSAGES/django.po +944 -934
  28. ledger/locale/uk/LC_MESSAGES/django.po +946 -936
  29. ledger/locale/zh_Hans/LC_MESSAGES/django.po +943 -933
  30. ledger/managers/character_mining_manager.py +66 -19
  31. ledger/managers/character_planetary_manager.py +1 -1
  32. ledger/migrations/0016_characterminingledger_price_per_unit.py +21 -0
  33. ledger/models/characteraudit.py +32 -1
  34. ledger/static/ledger/css/cards.css +1 -1
  35. ledger/static/ledger/css/table.css +1 -1
  36. ledger/static/ledger/js/charts.js +7 -227
  37. ledger/static/ledger/js/planetary.js +1 -0
  38. ledger/tasks.py +1 -8
  39. ledger/templates/ledger/allyledger/admin/alliance_administration.html +17 -8
  40. ledger/templates/ledger/allyledger/admin/alliance_overview.html +75 -89
  41. ledger/templates/ledger/allyledger/alliance_ledger.html +8 -10
  42. ledger/templates/ledger/bundles/ally-administration-bundles.html +2 -0
  43. ledger/templates/ledger/bundles/char-administration-bundles.html +2 -0
  44. ledger/templates/ledger/bundles/character-ledger-bundles.html +66 -64
  45. ledger/templates/ledger/bundles/corp-administration-bundles.html +2 -0
  46. ledger/templates/ledger/bundles/corporation-ledger-bundles.html +75 -73
  47. ledger/templates/ledger/charledger/admin/character_administration.html +10 -8
  48. ledger/templates/ledger/charledger/admin/character_overview.html +69 -86
  49. ledger/templates/ledger/charledger/character_ledger.html +11 -15
  50. ledger/templates/ledger/charledger/planetary/planetary_ledger.html +2 -6
  51. ledger/templates/ledger/corpledger/admin/corporation_administration.html +10 -8
  52. ledger/templates/ledger/corpledger/admin/corporation_overview.html +71 -83
  53. ledger/templates/ledger/corpledger/corporation_ledger.html +55 -14
  54. ledger/templates/ledger/partials/administration/alliance.html +28 -49
  55. ledger/templates/ledger/partials/administration/alliance_corporations.html +58 -0
  56. ledger/templates/ledger/partials/administration/corporation_characters.html +26 -28
  57. ledger/templates/ledger/partials/information/daily.html +1 -1
  58. ledger/templates/ledger/partials/information/day.html +1 -7
  59. ledger/templates/ledger/partials/information/hourly.html +1 -7
  60. ledger/templates/ledger/partials/information/summary.html +88 -84
  61. ledger/templates/ledger/partials/information/view_character_content.html +35 -35
  62. ledger/templates/ledger/partials/table/char-ledger.html +14 -5
  63. ledger/templates/ledger/partials/table/corp-ledger.html +3 -3
  64. ledger/templates/ledger/partials/view/card.html +2 -2
  65. ledger/tests/test_decarators.py +102 -17
  66. ledger/tests/test_helpers/test_etag.py +7 -6
  67. ledger/tests/test_managers/test_character_mining_manager.py +2 -1
  68. ledger/tests/test_models/test_characterminingledger.py +38 -2
  69. ledger/tests/test_tasks.py +4 -4
  70. ledger/tests/test_templatetags.py +5 -2
  71. ledger/tests/test_views/test_access.py +852 -852
  72. ledger/tests/testdata/esi.json +1 -2
  73. ledger/tests/testdata/eveuniverse.json +90 -48
  74. ledger/urls.py +66 -21
  75. ledger/views/alliance/alliance_ledger.py +4 -3
  76. ledger/views/corporation/corporation_ledger.py +25 -9
  77. {aa_ledger-0.9.8.dist-info → aa_ledger-0.9.9.1.dist-info}/WHEEL +0 -0
  78. {aa_ledger-0.9.8.dist-info → aa_ledger-0.9.9.1.dist-info}/licenses/LICENSE +0 -0
@@ -353,8 +353,7 @@
353
353
  "owner_id":1002,
354
354
  "planet_id":4001,
355
355
  "solar_system_id":30004783,
356
- "upgrade_level":5,
357
- "type_id":13
356
+ "upgrade_level":5
358
357
  }
359
358
  ]
360
359
  },
@@ -44,6 +44,12 @@
44
44
  "name": "Arkonor",
45
45
  "published": true
46
46
  },
47
+ {
48
+ "eve_category_id": 25,
49
+ "id": 465,
50
+ "name": "Ice",
51
+ "published": true
52
+ },
47
53
  {
48
54
  "eve_category_id": 42,
49
55
  "id": 1033,
@@ -176,30 +182,30 @@
176
182
  "radius": 1,
177
183
  "volume": 16
178
184
  },
179
- {
180
- "id":2268,
181
- "name":"Aqueous Liquids",
182
- "last_updated":"2025-01-02 16:22:40.192442",
183
- "capacity":0,
184
- "icon_id":"10012",
185
+ {
186
+ "id": 2268,
187
+ "name": "Aqueous Liquids",
188
+ "last_updated": "2025-03-10 21:17:24.708968",
189
+ "capacity": 0,
190
+ "icon_id": 10012,
185
191
  "mass": 0,
186
192
  "packaged_volume": 0.005,
187
193
  "portion_size": 1,
188
194
  "radius": 1,
189
195
  "published": 1,
190
196
  "volume": 0.005,
191
- "eve_graphic_id":null,
197
+ "eve_graphic_id": null,
192
198
  "eve_group_id": 1033,
193
199
  "eve_market_group_id": null,
194
- "enabled_sections": 13,
195
- "description":"The abundance of water on terrestrial planets is often a misconception: What many refer to offhandedly as \"water\" is often an amalgamation of many liquids, microscopic particles, and saturated compounds combined with water and other liquids. Aqueous liquids represent those liquids from which pure water can be separated easily from waste or hazardous particles, but only using the proper equipment."
196
- },
197
- {
200
+ "enabled_sections": 29,
201
+ "description": "The abundance of water on terrestrial planets is often a misconception: What many refer to offhandedly as \"water\" is often an amalgamation of many liquids, microscopic particles, and saturated compounds combined with water and other liquids. Aqueous liquids represent those liquids from which pure water can be separated easily from waste or hazardous particles, but only using the proper equipment."
202
+ },
203
+ {
198
204
  "id": 2309,
199
205
  "name":"Ionic Solutions",
200
206
  "last_updated":"2025-01-02 16:22:40.805952",
201
207
  "capacity": 0,
202
- "icon_id":"10014",
208
+ "icon_id":10014,
203
209
  "mass": 0,
204
210
  "packaged_volume": 0.005,
205
211
  "portion_size": 1,
@@ -211,13 +217,13 @@
211
217
  "eve_market_group_id": null,
212
218
  "enabled_sections": 13,
213
219
  "description":"An electrolyte found in a raw, natural form is called an ionic solution, especially in terms of planetary astronomy. Only after a lengthy process of extraction and refining can the resulting fluid go on to be used for medical, industrial, or nutritive applications."
214
- },
215
- {
220
+ },
221
+ {
216
222
  "id": 2390,
217
223
  "name":"Electrolytes",
218
224
  "last_updated":"2024-09-27 14:25:56.675992",
219
225
  "capacity": 0.0,
220
- "icon_id":"10019",
226
+ "icon_id": 10019,
221
227
  "mass": 0,
222
228
  "packaged_volume": 0.19,
223
229
  "portion_size": 1,
@@ -229,13 +235,13 @@
229
235
  "eve_market_group_id": null,
230
236
  "enabled_sections": 0,
231
237
  "description":"This conductive liquid is able to carry an electrical current due to its unique ionic properties, making it ideal for use as a reactive coolant, a high-energy fuel, or a transference medium for power plants."
232
- },
233
- {
238
+ },
239
+ {
234
240
  "id": 2534,
235
241
  "name":"Gas Launchpad",
236
242
  "last_updated":"2024-09-27 14:25:56.675992",
237
243
  "capacity": 0.0,
238
- "icon_id":"10019",
244
+ "icon_id": 10019,
239
245
  "mass": 0,
240
246
  "packaged_volume": 0.19,
241
247
  "portion_size": 1,
@@ -245,10 +251,10 @@
245
251
  "eve_graphic_id": null,
246
252
  "eve_group_id": 7,
247
253
  "eve_market_group_id": null,
248
- "enabled_sections": 0,
254
+ "enabled_sections": 29,
249
255
  "description":"."
250
- },
251
- {
256
+ },
257
+ {
252
258
  "id": 2557,
253
259
  "name":"Storm Launchpad",
254
260
  "last_updated":"2024-09-27 14:25:56.675992",
@@ -265,8 +271,8 @@
265
271
  "eve_market_group_id": null,
266
272
  "enabled_sections": 0,
267
273
  "description":"."
268
- },
269
- {
274
+ },
275
+ {
270
276
  "id": 3060,
271
277
  "name":"Gas Extractor Control Unit",
272
278
  "last_updated":"2024-09-27 14:25:56.675992",
@@ -281,15 +287,15 @@
281
287
  "eve_graphic_id": null,
282
288
  "eve_group_id": 7,
283
289
  "eve_market_group_id": null,
284
- "enabled_sections": 0,
290
+ "enabled_sections": 29,
285
291
  "description":"."
286
- },
287
- {
292
+ },
293
+ {
288
294
  "id": 3645,
289
295
  "name":"Water",
290
296
  "last_updated":"2025-01-02 16:16:50.272300",
291
297
  "capacity": 0,
292
- "icon_id":"1178",
298
+ "icon_id": 1178,
293
299
  "mass": 0,
294
300
  "packaged_volume": 0.19,
295
301
  "portion_size": 1,
@@ -301,47 +307,83 @@
301
307
  "eve_market_group_id": null,
302
308
  "enabled_sections": 13,
303
309
  "description":"Water is one of the basic conditional elements of human survival. Most worlds have this compound in relative short supply and hence must rely on starship freight."
304
- },
305
- {
310
+ },
311
+ {
306
312
  "id": 9832,
307
313
  "name":"Coolant",
308
314
  "last_updated":"2025-01-02 16:16:34.532296",
309
315
  "capacity": 0,
310
- "icon_id":"1360",
316
+ "icon_id": 1360,
311
317
  "mass": 0,
312
318
  "packaged_volume":0.75,
313
319
  "portion_size": 1,
314
320
  "radius": 1,
315
321
  "published": 1,
316
- "volume":0.75,
322
+ "volume": 0.75,
317
323
  "eve_graphic_id":null,
318
324
  "eve_group_id": 1034,
319
325
  "eve_market_group_id": null,
320
326
  "enabled_sections": 13,
321
327
  "description":"This specially blended fluid is ideal for transferring thermal energy away from sensitive machinery or computer components, rerouting it to heat sinks so it can be eliminated from the system."
322
- }
328
+ },
329
+ {
330
+ "id": 16268,
331
+ "name": "Gelidus",
332
+ "last_updated": "2025-03-09 18:51:27.959352",
333
+ "capacity": 0,
334
+ "icon_id": 2558,
335
+ "mass": 1000,
336
+ "packaged_volume": 1000,
337
+ "portion_size": 1,
338
+ "radius": 1,
339
+ "published": 1,
340
+ "volume": 1000,
341
+ "eve_graphic_id": null,
342
+ "eve_group_id": 465,
343
+ "eve_market_group_id": null,
344
+ "enabled_sections": 24,
345
+ "description": "Fairly rare and very valuable, Gelidus-type ice formations are a large-scale source of strontium clathrates, one of the rarest ice solids found in the universe, in addition to which they contain unusually large concentrations of heavy water and liquid ozone.\r\n\r\nAvailable in <color='0xFFFF0000'>0.0<\/color> security status solar systems or lower."
346
+ },
347
+ {
348
+ "id": 28437,
349
+ "name": "Compressed Gelidus",
350
+ "last_updated": "2025-03-09 18:51:34.183513",
351
+ "capacity": 0,
352
+ "icon_id": 3328,
353
+ "mass": 1000,
354
+ "packaged_volume": 100,
355
+ "portion_size": 1,
356
+ "radius": 1,
357
+ "published": 1,
358
+ "volume": 100,
359
+ "eve_graphic_id": null,
360
+ "eve_group_id": 465,
361
+ "eve_market_group_id": null,
362
+ "enabled_sections": 24,
363
+ "description": "Fairly rare and very valuable, Gelidus-type ice formations are a large-scale source of strontium clathrates, one of the rarest ice solids found in the universe, in addition to which they contain unusually large concentrations of heavy water and liquid ozone.\r\n\r\nThis material is compressed and a much more compact form of the original material."
364
+ }
323
365
  ],
324
366
  "EvePlanet": [
325
367
  {
326
- "id":"4001",
327
- "name":"Test Planet I",
328
- "last_updated":"2024-02-14 22:38:23.813892",
329
- "position_x":"1539254041784",
330
- "position_y":"-233186718285",
331
- "position_z":"-634258364444",
332
- "eve_solar_system_id":"30004783",
333
- "eve_type_id":"13",
368
+ "id": 4001,
369
+ "name": "Test Planet I",
370
+ "last_updated": "2024-02-14 22:38:23.813892",
371
+ "position_x": 1539254041784,
372
+ "position_y": -233186718285,
373
+ "position_z": -634258364444,
374
+ "eve_solar_system_id": 30004783,
375
+ "eve_type_id": 13,
334
376
  "enabled_sections": 0
335
377
  },
336
378
  {
337
- "id":"4002",
338
- "name":"Test Planet I",
339
- "last_updated":"2024-02-14 22:38:23.813892",
340
- "position_x":"1539254041784",
341
- "position_y":"-233186718285",
342
- "position_z":"-634258364444",
343
- "eve_solar_system_id":"30004783",
344
- "eve_type_id":"13",
379
+ "id": 4002,
380
+ "name": "Test Planet I",
381
+ "last_updated": "2024-02-14 22:38:23.813892",
382
+ "position_x": 1539254041784,
383
+ "position_y": -233186718285,
384
+ "position_z": -634258364444,
385
+ "eve_solar_system_id": 30004783,
386
+ "eve_type_id": 13,
345
387
  "enabled_sections": 0
346
388
  }
347
389
  ]
ledger/urls.py CHANGED
@@ -48,33 +48,33 @@ urlpatterns = [
48
48
  path(
49
49
  "alliance/<int:alliance_id>/<int:year>/",
50
50
  alliance_ledger.alliance_ledger,
51
- name="alliance_ledger_year",
51
+ name="alliance_ledger",
52
52
  ),
53
53
  path(
54
54
  "alliance/<int:alliance_id>/<int:year>/<int:month>/",
55
55
  alliance_ledger.alliance_ledger,
56
- name="alliance_ledger_year_month",
56
+ name="alliance_ledger",
57
57
  ),
58
58
  path(
59
59
  "alliance/<int:alliance_id>/<int:year>/<int:month>/<int:day>/",
60
60
  alliance_ledger.alliance_ledger,
61
- name="alliance_ledger_year_month_day",
61
+ name="alliance_ledger",
62
62
  ),
63
63
  # -- -- Alliance Details
64
64
  path(
65
65
  "alliance/<int:alliance_id>/<int:year>/view/details/<int:entity_id>/",
66
66
  alliance_ledger.alliance_details,
67
- name="alliance_details_year",
67
+ name="alliance_details",
68
68
  ),
69
69
  path(
70
70
  "alliance/<int:alliance_id>/<int:year>/<int:month>/view/details/<int:entity_id>/",
71
71
  alliance_ledger.alliance_details,
72
- name="alliance_details_year_month",
72
+ name="alliance_details",
73
73
  ),
74
74
  path(
75
75
  "alliance/<int:alliance_id>/<int:year>/<int:month>/<int:day>/view/details/<int:entity_id>/",
76
76
  alliance_ledger.alliance_details,
77
- name="alliance_details_year_month_day",
77
+ name="alliance_details",
78
78
  ),
79
79
  path(
80
80
  "alliance/<int:alliance_id>/view/administration/",
@@ -99,35 +99,80 @@ urlpatterns = [
99
99
  name="corporation_ledger",
100
100
  ),
101
101
  path(
102
- "corporation/<int:corporation_id>/<int:year>/",
102
+ "corporation/<int:corporation_id>/date/<int:year>/",
103
+ corporation_ledger.corporation_ledger,
104
+ name="corporation_ledger",
105
+ ),
106
+ path(
107
+ "corporation/<int:corporation_id>/date/<int:year>/<int:month>/",
108
+ corporation_ledger.corporation_ledger,
109
+ name="corporation_ledger",
110
+ ),
111
+ path(
112
+ "corporation/<int:corporation_id>/date/<int:year>/<int:month>/<int:day>/",
113
+ corporation_ledger.corporation_ledger,
114
+ name="corporation_ledger",
115
+ ),
116
+ path(
117
+ "corporation/<int:corporation_id>/division/<int:division_id>/",
103
118
  corporation_ledger.corporation_ledger,
104
- name="corporation_ledger_year",
119
+ name="corporation_ledger",
120
+ ),
121
+ path(
122
+ "corporation/<int:corporation_id>/division/<int:division_id>/date/<int:year>/",
123
+ corporation_ledger.corporation_ledger,
124
+ name="corporation_ledger",
105
125
  ),
106
126
  path(
107
- "corporation/<int:corporation_id>/<int:year>/<int:month>/",
127
+ "corporation/<int:corporation_id>/division/<int:division_id>/date/<int:year>/<int:month>/",
108
128
  corporation_ledger.corporation_ledger,
109
- name="corporation_ledger_year_month",
129
+ name="corporation_ledger",
110
130
  ),
111
131
  path(
112
- "corporation/<int:corporation_id>/<int:year>/<int:month>/<int:day>/",
132
+ "corporation/<int:corporation_id>/division/<int:division_id>/date/<int:year>/<int:month>/<int:day>/",
113
133
  corporation_ledger.corporation_ledger,
114
- name="corporation_ledger_year_month_day",
134
+ name="corporation_ledger",
115
135
  ),
116
136
  # -- -- Corporation Details
137
+ path(
138
+ "corporation/<int:corporation_id>/view/details/<int:entity_id>/",
139
+ corporation_ledger.corporation_details,
140
+ name="corporation_details",
141
+ ),
117
142
  path(
118
143
  "corporation/<int:corporation_id>/<int:year>/view/details/<int:entity_id>/",
119
144
  corporation_ledger.corporation_details,
120
- name="corporation_details_year",
145
+ name="corporation_details",
121
146
  ),
122
147
  path(
123
148
  "corporation/<int:corporation_id>/<int:year>/<int:month>/view/details/<int:entity_id>/",
124
149
  corporation_ledger.corporation_details,
125
- name="corporation_details_year_month",
150
+ name="corporation_details",
126
151
  ),
127
152
  path(
128
153
  "corporation/<int:corporation_id>/<int:year>/<int:month>/<int:day>/view/details/<int:entity_id>/",
129
154
  corporation_ledger.corporation_details,
130
- name="corporation_details_year_month_day",
155
+ name="corporation_details",
156
+ ),
157
+ path(
158
+ "corporation/<int:corporation_id>/division/<int:division_id>/view/details/<int:entity_id>/",
159
+ corporation_ledger.corporation_details,
160
+ name="corporation_details",
161
+ ),
162
+ path(
163
+ "corporation/<int:corporation_id>/division/<int:division_id>/<int:year>/view/details/<int:entity_id>/",
164
+ corporation_ledger.corporation_details,
165
+ name="corporation_details",
166
+ ),
167
+ path(
168
+ "corporation/<int:corporation_id>/division/<int:division_id>/<int:year>/<int:month>/view/details/<int:entity_id>/",
169
+ corporation_ledger.corporation_details,
170
+ name="corporation_details",
171
+ ),
172
+ path(
173
+ "corporation/<int:corporation_id>/division/<int:division_id>/<int:year>/<int:month>/<int:day>/view/details/<int:entity_id>/",
174
+ corporation_ledger.corporation_details,
175
+ name="corporation_details",
131
176
  ),
132
177
  path(
133
178
  "corporation/<int:corporation_id>/view/administration/",
@@ -148,33 +193,33 @@ urlpatterns = [
148
193
  path(
149
194
  "character/<int:character_id>/<int:year>/",
150
195
  character_ledger.character_ledger,
151
- name="character_ledger_year",
196
+ name="character_ledger",
152
197
  ),
153
198
  path(
154
199
  "character/<int:character_id>/<int:year>/<int:month>/",
155
200
  character_ledger.character_ledger,
156
- name="character_ledger_year_month",
201
+ name="character_ledger",
157
202
  ),
158
203
  path(
159
204
  "character/<int:character_id>/<int:year>/<int:month>/<int:day>/",
160
205
  character_ledger.character_ledger,
161
- name="character_ledger_year_month_day",
206
+ name="character_ledger",
162
207
  ),
163
208
  # -- -- Character Details
164
209
  path(
165
210
  "character/<int:character_id>/<int:year>/view/details/",
166
211
  character_ledger.character_details,
167
- name="character_details_year",
212
+ name="character_details",
168
213
  ),
169
214
  path(
170
215
  "character/<int:character_id>/<int:year>/<int:month>/view/details/",
171
216
  character_ledger.character_details,
172
- name="character_details_year_month",
217
+ name="character_details",
173
218
  ),
174
219
  path(
175
220
  "character/<int:character_id>/<int:year>/<int:month>/<int:day>/view/details/",
176
221
  character_ledger.character_details,
177
- name="character_details_year_month_day",
222
+ name="character_details",
178
223
  ),
179
224
  # -- -- Character Administration
180
225
  path(
@@ -61,7 +61,7 @@ def alliance_ledger(request, alliance_id, year=None, month=None, day=None):
61
61
  )
62
62
  # pylint: disable=duplicate-code
63
63
  if perms is None:
64
- msg = _("Alliance not found")
64
+ msg = _("Alliance not found.")
65
65
  messages.info(request, msg)
66
66
  return render(
67
67
  request, "ledger/allyledger/alliance_ledger.html", context=context
@@ -108,7 +108,7 @@ def alliance_details(
108
108
  )
109
109
  # pylint: disable=duplicate-code
110
110
  if perms is None:
111
- msg = _("Alliance not found")
111
+ msg = _("Alliance not found.")
112
112
  return render(
113
113
  request,
114
114
  "ledger/partials/information/view_character_content.html",
@@ -174,7 +174,7 @@ def alliance_administration(request, alliance_id):
174
174
  messages.error(request, msg)
175
175
  return redirect("ledger:alliance_ledger_index")
176
176
  if perm is None:
177
- msg = _("Alliance not found")
177
+ msg = _("Alliance not found.")
178
178
  messages.info(request, msg)
179
179
  return redirect("ledger:alliance_ledger_index")
180
180
 
@@ -191,6 +191,7 @@ def alliance_administration(request, alliance_id):
191
191
  context = {
192
192
  "alliance_id": alliance_id,
193
193
  "title": "Alliance Administration",
194
+ "alliance": alliance,
194
195
  "corporations": corporations,
195
196
  "missing_corporations": missing_corporations,
196
197
  }
@@ -43,15 +43,20 @@ def corporation_ledger_index(request):
43
43
  )
44
44
 
45
45
 
46
+ # pylint: disable=too-many-positional-arguments
46
47
  @login_required
47
48
  @permission_required("ledger.advanced_access")
48
49
  def corporation_ledger(
49
- request: WSGIRequest, corporation_id, year=None, month=None, day=None
50
+ request: WSGIRequest,
51
+ corporation_id: int,
52
+ division_id: int = None,
53
+ year: int = None,
54
+ month: int = None,
55
+ day: int = None,
50
56
  ):
51
57
  """
52
58
  Corporation Ledger
53
59
  """
54
-
55
60
  perms, corporation = get_corporation(request, corporation_id)
56
61
 
57
62
  context = {
@@ -75,7 +80,12 @@ def corporation_ledger(
75
80
  )
76
81
 
77
82
  corporation_data = CorporationData(
78
- request=request, corporation=corporation, year=year, month=month, day=day
83
+ request=request,
84
+ corporation=corporation,
85
+ division_id=division_id,
86
+ year=year,
87
+ month=month,
88
+ day=day,
79
89
  )
80
90
 
81
91
  # Create the Corporation ledger data
@@ -91,11 +101,12 @@ def corporation_ledger(
91
101
  @permission_required("ledger.advanced_access")
92
102
  def corporation_details(
93
103
  request: WSGIRequest,
94
- corporation_id,
95
- entity_id,
96
- year=None,
97
- month=None,
98
- day=None,
104
+ corporation_id: int,
105
+ entity_id: int,
106
+ division_id: int = None,
107
+ year: int = None,
108
+ month: int = None,
109
+ day: int = None,
99
110
  ):
100
111
  """
101
112
  Corporation Details
@@ -131,7 +142,12 @@ def corporation_details(
131
142
  )
132
143
 
133
144
  corporation_data = CorporationData(
134
- request=request, corporation=corporation, year=year, month=month, day=day
145
+ request=request,
146
+ corporation=corporation,
147
+ division_id=division_id,
148
+ year=year,
149
+ month=month,
150
+ day=day,
135
151
  )
136
152
 
137
153
  # Create the Entity for the ledger