1
0

allow to use exchange rates while offline

This commit is contained in:
ThomasV
2018-02-14 10:40:11 +01:00
parent cc19de9db3
commit b2c0350240
3 changed files with 29 additions and 9 deletions

View File

@@ -449,6 +449,10 @@ class Commands:
end_date = datetime.datetime(year+1, 1, 1)
kwargs['from_timestamp'] = time.mktime(start_date.timetuple())
kwargs['to_timestamp'] = time.mktime(end_date.timetuple())
if show_fiat:
from .exchange_rate import FxThread
fx = FxThread(self.config, None)
kwargs['fx'] = fx
return self.wallet.export_history(**kwargs)
@command('w')