removing unnecessary private function

This commit is contained in:
misagh 2018-11-18 14:39:31 +01:00
parent 608ce98e1a
commit 9c549f4513

View File

@ -19,9 +19,9 @@ class Wallets(object):
def __init__(self, exchange: Exchange) -> None: def __init__(self, exchange: Exchange) -> None:
self.exchange = exchange self.exchange = exchange
self.wallets: Dict[str, self.wallet] = {} self.wallets: Dict[str, self.wallet] = {}
self._update_wallets() self.update()
def _update_wallets(self) -> None: def update(self) -> None:
balances = self.exchange.get_balances() balances = self.exchange.get_balances()
for currency in balances: for currency in balances:
@ -36,6 +36,3 @@ class Wallets(object):
self.wallets[currency] = self.wallet(**info) self.wallets[currency] = self.wallet(**info)
logger.info('Wallets synced ...') logger.info('Wallets synced ...')
def update(self) -> None:
self._update_wallets()