Skip to content

Commit

Permalink
Removed tradingWith default dataAge to None for stations
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed May 4, 2015
1 parent 4ad6bb4 commit c7951a9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,14 @@ class Station(object):
'ID', 'system', 'dbname',
'lsFromStar', 'market', 'blackMarket', 'shipyard', 'maxPadSize',
'outfitting', 'rearm', 'refuel', 'repair',
'tradingWith', 'itemCount',
'dataAge',
'itemCount', 'dataAge',
)

def __init__(
self, ID, system, dbname,
lsFromStar, market, blackMarket, shipyard, maxPadSize,
outfitting, rearm, refuel, repair,
itemCount, dataAge,
itemCount=0, dataAge=None,
):
self.ID, self.system, self.dbname = ID, system, dbname
self.lsFromStar = int(lsFromStar)
Expand All @@ -312,7 +311,6 @@ def __init__(
self.refuel = refuel
self.repair = repair
self.itemCount = itemCount
self.tradingWith = None
self.dataAge = dataAge
system.stations = system.stations + (self,)

Expand Down Expand Up @@ -1162,7 +1160,7 @@ def _loadStations(self):
ID, systemByID[systemID], name,
lsFromStar, market, blackMarket, shipyard,
maxPadSize, outfitting, rearm, refuel, repair,
0, 0
0, None,
)
stationByID[ID] = station

Expand Down

0 comments on commit c7951a9

Please sign in to comment.