From 61068773d7358355bb568217d9787ba03039ed02 Mon Sep 17 00:00:00 2001 From: garland Date: Wed, 7 Feb 2024 15:03:19 -0800 Subject: [PATCH] updating outputs --- houseseats.com/notify-on-event/search.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 5a21eae8..b9595a1d 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -36,7 +36,7 @@ def send_to_slack(message): loop_count = 0 while True: - print('Starting program...') + print('[Starting program...]') # Open the state YAML file @@ -87,7 +87,7 @@ def send_to_slack(message): ## Loop through the list of matches which should be all of the shows/events on the page for event in matches: - print(f'found: {event[0]} | {event[1]}') + print(f'[Event to process]: {event[0]} | {event[1]}') ## Compare to see if the event is in the exclude list. ## If it is in the exclude list, then do not send a message to Slack @@ -108,7 +108,7 @@ def send_to_slack(message): # Print extracted text if result: - print(f'found {search_item}') + print(f'[IN EXCLUDE LIST] {search_item}') found_exclude = True @@ -144,9 +144,9 @@ def send_to_slack(message): # Write the YAML data to the file yaml.dump(new_state, file) - print('Sleeping for 60 seconds...') + print('[Sleeping] for 60 seconds...') loop_count += 1 if loop_count >= 60: - print('Restarting program...') + print('[Ending program...]') break time.sleep(60)