def fetch_wallettransactions(apiupdate_pk): try: target, corporation = _get_corporation_auth(apiupdate_pk) except CorporationSheet.DoesNotExist: log.debug("CorporationSheet for APIUpdate {0} not indexed yet.".format(apiupdate_pk)) return except APIUpdate.DoesNotExist: log.warning("Target APIUpdate {0} was deleted mid-flight.".format(apiupdate_pk)) return log.info('Walking transactions for corporation "{0}".'.format(corporation)) app.send_task("corporation.walk_wallettransactions", [target.pk, None]) corporation_wallet_journal_updated.send(WalletTransaction, corporationID=corporation.pk)
def fetch_walletjournal(apiupdate_pk): try: target, corporation = _get_corporation_auth(apiupdate_pk) except CorporationSheet.DoesNotExist: log.debug("CorporationSheet for APIUpdate {0} not indexed yet.".format(apiupdate_pk)) return except APIUpdate.DoesNotExist: log.warning("Target APIUpdate {0} was deleted mid-flight.".format(apiupdate_pk)) return for accountKey in (1000, 1001, 1002, 1003, 1004, 1005, 1006): log.info('Walking accountKey {0} for corporation "{1}".'.format(accountKey, corporation)) app.send_task("corporation.walk_walletjournal", [target.pk, None, accountKey]) corporation_wallet_journal_updated.send(WalletJournal, corporationID=corporation.pk)