Update analyzer.py

This commit is contained in:
Richard Bronkhorst 2023-06-20 22:18:20 +02:00
parent 707f142e7a
commit fbda97df61

View File

@ -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):