fix market display
This commit is contained in:
		
							parent
							
								
									a287897da9
								
							
						
					
					
						commit
						6118772a63
					
				@ -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'])
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user