1
0
mirror of https://github.com/pyro2927/SouthwestCheckin.git synced 2025-12-06 01:13:19 +00:00

add timestamp to output

This commit is contained in:
Jeff Li
2020-12-27 09:59:53 -08:00
parent b1d6612415
commit bac9718d11

View File

@@ -94,7 +94,10 @@ if __name__ == '__main__':
verbose = arguments['--verbose']
try:
print("Attempting to check in {} {}. Confirmation: {}\n".format(first_name, last_name, reservation_number))
now = datetime.now()
time_of_attempt = now.strftime("%H:%M:%S")
print("Attempting to check in {} {} at {}. Confirmation: {}\n".format(first_name, last_name, time_of_attempt, reservation_number))
auto_checkin(reservation_number, first_name, last_name, verbose)
except KeyboardInterrupt:
print("Ctrl+C detected, canceling checkin")