From e49e956e518dca0632d078a15e18f8bfc24aa13c Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 25 Feb 2012 00:35:36 +0530 Subject: [PATCH] aa, silly naming conflict --- indianrails/trains/imports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indianrails/trains/imports.py b/indianrails/trains/imports.py index 6fe8040..d38ff8f 100644 --- a/indianrails/trains/imports.py +++ b/indianrails/trains/imports.py @@ -165,7 +165,7 @@ def getDate(s): date = int(matches[0][1]) return "%02d-%02d" % (monthInt, date,) -def getMinutes(s): +def getMins(s): if s is None: return None s = s.replace('m', '').strip() @@ -188,7 +188,7 @@ def import_schedule(): schedule.data_id = s['id'] schedule.arrival = getTime(s['arrival']) schedule.departure = getTime(s['departure']) - schedule.halt = getMinutes(s['halt']) + schedule.halt = getMins(s['halt']) try: schedule.stop_number = Decimal(s['stop_number']) except: