Update commander.py

This commit is contained in:
Richard Bronkhorst 2023-07-16 21:01:00 +02:00
parent 1f4a1a48de
commit e0f73f837b

View File

@ -55,6 +55,7 @@ class Commander(CommandLine):
def agent_setup(self):
symbol = input('agent name: ')
agent = self.store.get(Agent, symbol, create=True)
self.agent = agent
api = Api(self.store, agent)
self.api = api
faction = input('faction: ')
@ -65,8 +66,8 @@ class Commander(CommandLine):
self.do_ships('r')
print('=== contracts')
self.do_contracts('r')
print('=== waypoints')
self.do_waypoints()
ship = self.store.get(Ship, symbol.upper() + '-2')
api.list_waypoints(ship.location.system)
self.store.flush()
return agent