yuripeyamashita
commited on
Commit
•
81b69ab
1
Parent(s):
b406846
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def api():
|
|
109 |
try:
|
110 |
text = payload.get("msg_text")
|
111 |
number = float(simple_eval(text.split("計算")[1]))
|
112 |
-
send_text(payload.get("token"), f"$ {number}", payload.get("quote_token"))
|
113 |
except:
|
114 |
raise ValueError("Calculation Error")
|
115 |
raise ValueError("Calculation Successful")
|
|
|
109 |
try:
|
110 |
text = payload.get("msg_text")
|
111 |
number = float(simple_eval(text.split("計算")[1]))
|
112 |
+
send_text(payload.get("token"), f"$ {round(number,2)}", payload.get("quote_token"))
|
113 |
except:
|
114 |
raise ValueError("Calculation Error")
|
115 |
raise ValueError("Calculation Successful")
|