Spaces:
Runtime error
Runtime error
measmonysuon
commited on
Commit
•
ff897dd
1
Parent(s):
d95a520
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def update_user_points(username, points):
|
|
60 |
|
61 |
def notify_webhook(username):
|
62 |
"""Notify the webhook server about the points update."""
|
63 |
-
webhook_url =
|
64 |
payload = {'username': username, 'points': 10} # Adjust payload as necessary
|
65 |
try:
|
66 |
response = requests.post(webhook_url, json=payload)
|
@@ -71,7 +71,7 @@ def notify_webhook(username):
|
|
71 |
|
72 |
def get_user_points(username):
|
73 |
"""Retrieve user points from the Flask server."""
|
74 |
-
webhook_url =
|
75 |
params = {'username': username}
|
76 |
try:
|
77 |
response = requests.get(webhook_url, params=params)
|
|
|
60 |
|
61 |
def notify_webhook(username):
|
62 |
"""Notify the webhook server about the points update."""
|
63 |
+
webhook_url = "http://65.108.76.174:5000/update_points"
|
64 |
payload = {'username': username, 'points': 10} # Adjust payload as necessary
|
65 |
try:
|
66 |
response = requests.post(webhook_url, json=payload)
|
|
|
71 |
|
72 |
def get_user_points(username):
|
73 |
"""Retrieve user points from the Flask server."""
|
74 |
+
webhook_url = "http://65.108.76.174:5000/get_points"
|
75 |
params = {'username': username}
|
76 |
try:
|
77 |
response = requests.get(webhook_url, params=params)
|