Skip to content

Commit

Permalink
debugging...
Browse files Browse the repository at this point in the history
  • Loading branch information
garland committed Feb 6, 2024
1 parent 1c917b4 commit b7c07e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions houseseats.com/notify-on-event/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def send_to_slack(message):


# Find all instances of the <h1> title of a show
pattern = r'<h1><a href="(.*?)">(.*?)</a></h1>'
pattern = r'<h1><a href="./tickets/view/\?showid=(.*?)">(.*?)</a></h1>'

# Use re.findall() to find all instances of the pattern in the string
matches = re.findall(pattern, response.text.lower())
Expand Down Expand Up @@ -100,6 +100,6 @@ def send_to_slack(message):
## Send message to Slack
if slack_enabled == 'true':
send_to_slack(f"""
*[Houseseat]* Search found: <https://lv.houseseats.com/{urllib.parse.unquote(event[0])}|{event[1]}>
*[Houseseat]* Search found: <https://lv.houseseats.com/member/tickets/view/?showid={urllib.parse.unquote(event[0])}|{event[1]}>
<http://api2342.in/API/api.php|Approve>
""")

0 comments on commit b7c07e9

Please sign in to comment.