Skip to content

Commit

Permalink
After you see what getSystem does not, you'll never use the old versi…
Browse files Browse the repository at this point in the history
…on again!

[Fixed it returning a name instead of a System]
  • Loading branch information
kfsone committed Aug 14, 2014
1 parent f3898a4 commit fa59b6f
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 @@ -205,8 +205,8 @@ def getSystem(self, name):
if isinstance(name, Station):
return name.system

return self.list_search("System", name, self.systemIDs.keys())

system = self.list_search("System", name, self.systems.keys())
return self.systems[system]

def getStation(self, name):
""" Look up a station by it's station or system name. """
Expand Down

0 comments on commit fa59b6f

Please sign in to comment.