service.py

changeset 64
6dbda3b1015f
parent 63
20865458d936
child 68
382dd85b83a2
equal deleted inserted replaced
63:20865458d936 64:6dbda3b1015f
187 region = halt.stop.region 187 region = halt.stop.region
188 schedule[-1]['stops'].append({ 188 schedule[-1]['stops'].append({
189 'time': formatted_time, 189 'time': formatted_time,
190 'id': halt.stop.reference, 190 'id': halt.stop.reference,
191 'code': halt.stop.code, 191 'code': halt.stop.code,
192 'name': tr(halt.stop.name, 'bus_stops'), 192 'name': tr(halt.stop.name, 'bus-stops'),
193 }) 193 })
194 sign = trip.concise_schedule() 194 sign = trip.concise_schedule()
195 try: 195 try:
196 sign = [simplify_name(sign[0]), simplify_name(sign[-1])] 196 sign = [simplify_name(sign[0]), simplify_name(sign[-1])]
197 except IndexError: 197 except IndexError:

mercurial