yuripeyamashita commited on
Commit
b406846
·
verified ·
1 Parent(s): 933c22f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -107,6 +107,7 @@ def api():
107
  if "$" not in payload.get("msg_text"):
108
  if "計算" in payload.get("msg_text"):
109
  try:
 
110
  number = float(simple_eval(text.split("計算")[1]))
111
  send_text(payload.get("token"), f"$ {number}", payload.get("quote_token"))
112
  except:
 
107
  if "$" not in payload.get("msg_text"):
108
  if "計算" in payload.get("msg_text"):
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: