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: |