aa, silly naming conflict

This commit is contained in:
Sanj 2012-02-25 00:35:36 +05:30
parent d76034aa63
commit e49e956e51

View File

@ -165,7 +165,7 @@ def getDate(s):
date = int(matches[0][1]) date = int(matches[0][1])
return "%02d-%02d" % (monthInt, date,) return "%02d-%02d" % (monthInt, date,)
def getMinutes(s): def getMins(s):
if s is None: if s is None:
return None return None
s = s.replace('m', '').strip() s = s.replace('m', '').strip()
@ -188,7 +188,7 @@ def import_schedule():
schedule.data_id = s['id'] schedule.data_id = s['id']
schedule.arrival = getTime(s['arrival']) schedule.arrival = getTime(s['arrival'])
schedule.departure = getTime(s['departure']) schedule.departure = getTime(s['departure'])
schedule.halt = getMinutes(s['halt']) schedule.halt = getMins(s['halt'])
try: try:
schedule.stop_number = Decimal(s['stop_number']) schedule.stop_number = Decimal(s['stop_number'])
except: except: