Tue, 20 Jun 2017 10:32:50 +0300
-
buses.py | file | annotate | diff | comparison | revisions | |
templates/cluster.html | file | annotate | diff | comparison | revisions |
--- a/buses.py Tue Jun 20 10:30:47 2017 +0300 +++ b/buses.py Tue Jun 20 10:32:50 2017 +0300 @@ -358,7 +358,7 @@ print('Ladataan aikataulut... ', end = '', flush = True, file = stderr) with open('gtfs/stop_times.txt') as file: - rivimäärä = sum(line.count('\n') for line in file) + row_count = sum(line.count('\n') for line in file) progress = 0 file.seek(0) for row in read_csv(file): @@ -370,5 +370,5 @@ trip.schedule.append(BusHalt(arrival_time, departure_time, stop, trip, traveled_distance)) progress += 1 if progress % 1000 == 0: - print('\rLadataan aikataulut... %.1f%%' % (progress * 100 / rivimäärä), end = ' ', file = stderr) + print('\rLadataan aikataulut... %.1f%%' % (progress * 100 / row_count), end = ' ', file = stderr) print('\rLadataan aikataulut... ladattu', file = stderr)
--- a/templates/cluster.html Tue Jun 20 10:30:47 2017 +0300 +++ b/templates/cluster.html Tue Jun 20 10:32:50 2017 +0300 @@ -3,7 +3,7 @@ <link rel="icon" type="image/png" href="/static/favicon.png" /> <link rel="stylesheet" type="text/css" href="/static/style.css" /> <meta charset='UTF-8' /> - <title>{{nimi}}</title> + <title>{{name}}</title> <style> div.stops-in-cluster {