mirror of
https://github.com/pyro2927/SouthwestCheckin.git
synced 2025-12-06 01:13:19 +00:00
Merge pull request #66 from jeffmli/add_timestamp_to_output
Add a timestamp to the output
This commit is contained in:
@@ -94,7 +94,10 @@ if __name__ == '__main__':
|
|||||||
verbose = arguments['--verbose']
|
verbose = arguments['--verbose']
|
||||||
|
|
||||||
try:
|
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)
|
auto_checkin(reservation_number, first_name, last_name, verbose)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("Ctrl+C detected, canceling checkin")
|
print("Ctrl+C detected, canceling checkin")
|
||||||
|
|||||||
Reference in New Issue
Block a user