yuripeyamashita
commited on
Commit
•
da3b0f7
1
Parent(s):
d5e4b99
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,20 @@ def api():
|
|
35 |
|
36 |
if "$$$" in payload.get("msg_text"):
|
37 |
if "計算" in payload.get("msg_text"):
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
# username_list = get_username_list()
|
40 |
# print(username_list)
|
41 |
# for user_id in username_list:
|
|
|
35 |
|
36 |
if "$$$" in payload.get("msg_text"):
|
37 |
if "計算" in payload.get("msg_text"):
|
38 |
+
users_number = get_users_number()
|
39 |
+
|
40 |
+
users = list({item["user_id"] for item in message_list.values()})
|
41 |
+
if len(users) != users_number:
|
42 |
+
users.append("others")
|
43 |
+
|
44 |
+
matrix = [[0 for _ in range(users)] for _ in range(users)]
|
45 |
+
print(matrix)
|
46 |
+
|
47 |
+
for msg_id in message_list:
|
48 |
+
print([key for key, value in message_list.items() if value.get("quoted_msg_id") == msg_id])
|
49 |
+
|
50 |
+
# users.index("b")
|
51 |
+
|
52 |
# username_list = get_username_list()
|
53 |
# print(username_list)
|
54 |
# for user_id in username_list:
|