Skip to content

Commit

Permalink
Change default str() for Station
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Mar 29, 2015
1 parent 154c952 commit 46ec99f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def __init__(
system.stations.append(self)

def name(self):
return '%s/%s' % (self.system.name(), self.dbname)
return '%s/%s' % (self.system.dbname, self.dbname)

def checkPadSize(self, maxPadSize):
"""
Expand Down Expand Up @@ -360,7 +360,7 @@ def isTrading(self):
return (self.itemCount > 0 or self.market == 'Y')

def str(self):
return self.dbname
return '%s/%s' % (self.system.dbname, self.dbname)


######################################################################
Expand Down

0 comments on commit 46ec99f

Please sign in to comment.