Spaces:
Paused
Paused
fix word being lost
Browse files
app.py
CHANGED
@@ -238,7 +238,7 @@ def summary(webhook_url, disable_discord, env, username, state):
|
|
238 |
json={"content": chunk, "allowed_mentions": {"parse": []}},
|
239 |
)
|
240 |
r.raise_for_status()
|
241 |
-
chunk = ""
|
242 |
if chunk:
|
243 |
r = requests.post(
|
244 |
webhook_url,
|
@@ -357,14 +357,14 @@ def run_summary_hard():
|
|
357 |
)
|
358 |
r.raise_for_status()
|
359 |
print("hard chall chunk: ", chunk)
|
360 |
-
chunk = ""
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
except Exception:
|
369 |
return "Error: webhook discord failed"
|
370 |
|
|
|
238 |
json={"content": chunk, "allowed_mentions": {"parse": []}},
|
239 |
)
|
240 |
r.raise_for_status()
|
241 |
+
chunk = word + " "
|
242 |
if chunk:
|
243 |
r = requests.post(
|
244 |
webhook_url,
|
|
|
357 |
)
|
358 |
r.raise_for_status()
|
359 |
print("hard chall chunk: ", chunk)
|
360 |
+
chunk = word + " "
|
361 |
+
if chunk:
|
362 |
+
print("hard chall chunk: ", chunk)
|
363 |
+
r = requests.post(
|
364 |
+
discord_webhook_url_hard,
|
365 |
+
json={"content": chunk, "allowed_mentions": {"parse": []}},
|
366 |
+
)
|
367 |
+
r.raise_for_status()
|
368 |
except Exception:
|
369 |
return "Error: webhook discord failed"
|
370 |
|