From 9c549f451390822e22c6b4e141aa239234c9b85d Mon Sep 17 00:00:00 2001 From: misagh Date: Sun, 18 Nov 2018 14:39:31 +0100 Subject: [PATCH] removing unnecessary private function --- freqtrade/wallets.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index 7155f90ac..fc2769831 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -19,9 +19,9 @@ class Wallets(object): def __init__(self, exchange: Exchange) -> None: self.exchange = exchange 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() for currency in balances: @@ -36,6 +36,3 @@ class Wallets(object): self.wallets[currency] = self.wallet(**info) logger.info('Wallets synced ...') - - def update(self) -> None: - self._update_wallets()