Update commander.py
This commit is contained in:
parent
11031599cf
commit
6c98eec738
@ -130,9 +130,9 @@ class Commander(CommandLine):
|
|||||||
resource = delivery['trade_symbol']
|
resource = delivery['trade_symbol']
|
||||||
destination = delivery['destination']
|
destination = delivery['destination']
|
||||||
m = self.analyzer.find_closest_markets(resource, 'buy', destination)
|
m = self.analyzer.find_closest_markets(resource, 'buy', destination)
|
||||||
if len(m) is None:
|
if len(m) == 0:
|
||||||
m = self.analyzer.find_closest_markets(resource, 'exchange', destination)
|
m = self.analyzer.find_closest_markets(resource, 'exchange', destination)
|
||||||
if len(m) is None:
|
if len(m) == 0:
|
||||||
print('no market found')
|
print('no market found')
|
||||||
return
|
return
|
||||||
_, m, _, _ = m[0]
|
_, m, _, _ = m[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user