fix market display

This commit is contained in:
Richard 2023-12-30 17:23:37 +01:00
parent a287897da9
commit 6118772a63

View File

@ -55,6 +55,14 @@ class Marketplace(Base):
def f(self, detail=1):
r = self.symbol
if detail > 1:
r += '\n'
if len(self.imports) > 0:
r += 'I: ' + ', '.join(self.imports) + '\n'
if len(self.exports) > 0:
r += 'E: ' + ', '.join(self.exports) + '\n'
if len(self.exchange) > 0:
r += 'X: ' + ', '.join(self.exchange) + '\n'
r += '\n'
for p in self.prices.values():
t = self.rtype(p['symbol'])