yuripeyamashita commited on
Commit
379cd26
·
verified ·
1 Parent(s): 28d054c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -87,10 +87,7 @@ def api():
87
  quoted_msg_id = data.get("quoted_msg_id")
88
  quoted_msg_list = {key: value for key, value in message_list.items() if value.get("quoted_msg_id") == msg_id}
89
 
90
- if msg_id == payload.get("quoted_msg_id") or quoted_msg_id == payload.get("quoted_msg_id"):
91
- continue
92
-
93
- if not quoted_msg_id and len(quoted_msg_list) != 0:
94
  amount: float = data.get("amount")
95
  paid: float = 0.0
96
  for _, value in quoted_msg_list.items():
 
87
  quoted_msg_id = data.get("quoted_msg_id")
88
  quoted_msg_list = {key: value for key, value in message_list.items() if value.get("quoted_msg_id") == msg_id}
89
 
90
+ if not quoted_msg_id and len(quoted_msg_list) != 0 and payload.get("quoted_msg_id") != msg_id:
 
 
 
91
  amount: float = data.get("amount")
92
  paid: float = 0.0
93
  for _, value in quoted_msg_list.items():