Use the new model helpers
This commit is contained in:
parent
7d1bd75f48
commit
afe3efb319
|
@ -117,7 +117,8 @@ class Aggregator(models.Model):
|
|||
|
||||
@classmethod
|
||||
def get_currencies_for_platform(cls, platform):
|
||||
aggregators = Aggregator.get_for_platform(platform)
|
||||
# aggregators = Aggregator.get_for_platform(platform)
|
||||
aggregators = platform.aggregators
|
||||
currencies = set()
|
||||
for aggregator in aggregators:
|
||||
for currency in aggregator.currencies:
|
||||
|
@ -127,7 +128,8 @@ class Aggregator(models.Model):
|
|||
|
||||
@classmethod
|
||||
def get_account_info_for_platform(cls, platform):
|
||||
aggregators = Aggregator.get_for_platform(platform)
|
||||
# aggregators = Aggregator.get_for_platform(platform)
|
||||
aggregators = platform.aggregators
|
||||
account_info = {}
|
||||
for agg in aggregators:
|
||||
for bank, accounts in agg.account_info.items():
|
||||
|
|
Loading…
Reference in New Issue