Ever wanted to play "Push It" by Salt-N-Pepa every time you 'git push'?
blog.daniel-watkins.co.uk2 pointsby OddBloke0 comments
reasons = [
"leaves on the track",
"vandalism",
"drunk chavs",
"driver being absolutely shitfaced",
"solar flares",
"transport police randomly deciding to stop and search everyone on board",
"you having an interview",
"a possible UFO sighting in Belgium",
"British Rail",
"lack of coffee at the previous station, so the driver has just nipped off to get some",
"leaves on the track",
"flooding within 300km of a railway sleeper"
]
delay_all_trains_by_minutes = 5
if date.today().day % 2 == 1:
delay_all_trains_by_minutes = random.randint(0, 30)
print('All trains will be delayed by {} minute(s) due to {}'.format(
delay_all_trains_by_minutes, random.choice(reasons))
So I'm guessing that was the issue here.