Update api.py

This commit is contained in:
Richard Bronkhorst 2023-06-18 20:47:34 +02:00
parent 3a3e3b9da2
commit 21f93f078d

View File

@ -121,7 +121,7 @@ class Api:
'tradeSymbol': typ.upper(),
'units': units
}
data = self.request('post', f'my/contracts/{contract}/deliver', data)
data = self.request('post', f'my/contracts/{contract.symbol.lower()}/deliver', data)
if 'cargo' in data:
ship.update(data)
if 'contract' in data:
@ -129,7 +129,7 @@ class Api:
return contract
def fulfill(self, contract):
data = self.request('post', f'my/contracts/{contract}/fulfill')
data = self.request('post', f'my/contracts/{contract.symbol.lower()}/fulfill')
if 'contract' in data:
contract.update(data['contract'])
if 'agent' in data: