Auto create the month summary

This commit is contained in:
2012-07-10 21:11:38 +01:00
parent d3ec89f204
commit 5d4fbbbe4c

View File

@@ -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)