Skip to content

Commit

Permalink
updating outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
garland committed Feb 7, 2024
1 parent b51646c commit 6106877
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions houseseats.com/notify-on-event/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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)

0 comments on commit 6106877

Please sign in to comment.