Skip to content

Commit

Permalink
Made station names in empty systems = {SYSTEMNAME}*
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Aug 13, 2014
1 parent 1324a32 commit 56c0181
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions import.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def addStar(line):
sys, station = fields[0].split('/')
sys, station = sys.strip(), station.strip()
srcID = None
if station == '*':
station = sys.upper() + '*'
try:
srcID = tdb.getStation(station).ID
except ValueError:
Expand Down Expand Up @@ -91,12 +93,12 @@ def parseItem(station, cat, line, uiOrder):
uiOrder = 0
for line in f:
line = line.strip()
if not line:
next
if not line or len(line) < 1:
continue
if line[0] == '#':
if line == '#allowUnknown':
allowUnknown = True
next # comment
continue # comment
elif line[0] == '*':
addStar(line[1:])
elif line[0] == '@':
Expand Down

0 comments on commit 56c0181

Please sign in to comment.