Added parentheses for delay

The delay is directly calculated in the departure time, so the delay is
now given in parentheses to make that clear
This commit is contained in:
JuliusFreudenberger 2019-10-18 12:33:11 +02:00
parent 7ee9e2a9f1
commit 1077d9acc4

2
bot.py
View file

@ -121,7 +121,7 @@ def get_vvs_departures(query):
reply.append( reply.append(
"Line " + station['number'] + " to \"" + station['direction'] + "\" at " "Line " + station['number'] + " to \"" + station['direction'] + "\" at "
+ station['departureTime']['hour'].zfill(2) + ':' + station['departureTime']['minute'].zfill(2) + station['departureTime']['hour'].zfill(2) + ':' + station['departureTime']['minute'].zfill(2)
+ " +" + str(station['delay'])) + " (+" + str(station['delay']) + ")")
printed_departures += 1 printed_departures += 1
if printed_departures >= query.departure_count: if printed_departures >= query.departure_count:
break break