Update analyzer.py
This commit is contained in:
parent
707f142e7a
commit
fbda97df61
@ -34,6 +34,8 @@ class Analyzer:
|
|||||||
yield m
|
yield m
|
||||||
|
|
||||||
def find_closest_market(self, resource, sellbuy, location):
|
def find_closest_market(self, resource, sellbuy, location):
|
||||||
|
if type(location) == str:
|
||||||
|
location = self.store.get(System, location)
|
||||||
market = None
|
market = None
|
||||||
distance = None
|
distance = None
|
||||||
for m in self.find_markets(resource, sellbuy):
|
for m in self.find_markets(resource, sellbuy):
|
||||||
|
Loading…
Reference in New Issue
Block a user