session保存更加合理化

This commit is contained in:
xaoyaoo committed 2024-01-30 00:21:33 +08:00
1 parent db6ffab06e
commit 23e3dd3c11
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -125,7 +125,7 @@ def contact_list():
limit = request.json.get("limit")
contact_list = analyzer.get_contact_list(micro_path)
save_session(g.sf, "user_list", contact_list)
# save_session(g.sf, "user_list", contact_list)
if limit:
contact_list = contact_list[int(start):int(start) + int(limit)]
return ReJson(0, contact_list)
@@ -178,7 +178,7 @@ def contact_count_list():
# 降序
contact_list = sorted(contact_list, key=lambda x: x["chat_count"], reverse=True)
save_session(g.sf, "user_list", contact_list)
# save_session(g.sf, "user_list", contact_list)
if word and word != "" and word != "undefined" and word != "null":
contact_list = [contact for contact in contact_list if