mirror of
https://github.com/nikdoof/pacmanager.git
synced 2025-12-18 12:29:28 +00:00
Auto create the month summary
This commit is contained in:
@@ -11,6 +11,9 @@ def import_wallet_journal(corporation_id):
|
||||
corp = Corporation.objects.get(pk=corporation_id)
|
||||
api = EVEAPIConnection(cacheHandler=APICache.DjangoCacheHandler())
|
||||
|
||||
# create current month
|
||||
MonthTotal.objects.get_or_create(corporation=corp, year=now().year, month=now().month)
|
||||
|
||||
for key in corp.keys.all():
|
||||
auth = api.auth(keyID=key.pk, vCode=key.vcode)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user