Skip to content

Commit

Permalink
fixed bug when using station codes
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceMaverick committed Jan 17, 2017
1 parent 933205f commit 98de1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beards/natrailenq/NatRail.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, url, station_codes_doc):

def getStationFromCode(self, stat):
for key in self.codes:
if self.codes[key] == stat:
if self.codes[key] == stat.upper():
return key
return stat

Expand Down

0 comments on commit 98de1f5

Please sign in to comment.