Skip to content

Commit

Permalink
Fixed bug with corrections in cache.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Dec 5, 2014
1 parent 79c654b commit bd375c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,21 +303,21 @@ def changeStation(matches):
if stationID < 0:
try:
correctName = corrections.systems[systemName]
if correction == DELETED:
if correctName == DELETED:
tdenv.DEBUG1("DELETED: {}", systemName)
stationID = correction
stationID = DELETED
return
systemName = correction.upper()
systemName = correctName.upper()
except KeyError:
pass
try:
key = systemName + "/" + stationName.upper()
correction = corrections.stations[key]
if correction == DELETED:
correctName = corrections.stations[key]
if correctName == DELETED:
tdenv.DEBUG1("DELETED: {}", key)
stationID = correction
stationID = DELETED
return
stationName = correction.upper()
stationName = correctName.upper()
except KeyError:
pass
facility = systemName + '/' + stationName
Expand Down

0 comments on commit bd375c4

Please sign in to comment.