yuripeyamashita
commited on
Commit
•
eb1cacb
1
Parent(s):
fa6e3b2
Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,7 @@ def api():
|
|
31 |
|
32 |
if payload.get("unsend_msg_id"):
|
33 |
message_list.pop(payload.get("unsend_msg_id"), None)
|
|
|
34 |
|
35 |
if get_amount(payload.get("msg_text")) == None:
|
36 |
raise ValueError("Amount is None")
|
@@ -43,15 +44,15 @@ def api():
|
|
43 |
message_list[payload.get("msg_id")] = {"user_id": payload.get("user_id"),
|
44 |
"amount": get_amount(payload.get("msg_text"))}
|
45 |
|
46 |
-
print(message_list)
|
47 |
-
print()
|
48 |
-
|
49 |
# username = get_username(payload)
|
50 |
# text = payload.get("msg_text")
|
51 |
# print(username)
|
52 |
# send_text(payload.get("token"), f"{username}:{text}")
|
53 |
except Exception as e:
|
54 |
print(f"An error occurred: {e}")
|
|
|
|
|
|
|
55 |
return "", 200
|
56 |
|
57 |
|
|
|
31 |
|
32 |
if payload.get("unsend_msg_id"):
|
33 |
message_list.pop(payload.get("unsend_msg_id"), None)
|
34 |
+
raise ValueError("Unsend Success")
|
35 |
|
36 |
if get_amount(payload.get("msg_text")) == None:
|
37 |
raise ValueError("Amount is None")
|
|
|
44 |
message_list[payload.get("msg_id")] = {"user_id": payload.get("user_id"),
|
45 |
"amount": get_amount(payload.get("msg_text"))}
|
46 |
|
|
|
|
|
|
|
47 |
# username = get_username(payload)
|
48 |
# text = payload.get("msg_text")
|
49 |
# print(username)
|
50 |
# send_text(payload.get("token"), f"{username}:{text}")
|
51 |
except Exception as e:
|
52 |
print(f"An error occurred: {e}")
|
53 |
+
|
54 |
+
print(message_list)
|
55 |
+
print()
|
56 |
return "", 200
|
57 |
|
58 |
|