MCPcopy
hub / github.com/TechXueXi/TechXueXi / show_score

Function show_score

SourcePackages/pdlearn/score.py:25–40  ·  view source on GitHub ↗
(cookies)

Source from the content-addressed store, hash-verified

23
24
25def show_score(cookies):
26 userId, total, scores, userName = get_score(cookies)
27 print(userName+" 当前学 xi 总积分:" + str(total) +
28 "\t" + "今日得分:" + str(scores["today"]))
29 print("阅读文章:", handle_score_color(scores["article_num"], const.article_num_all), ",",
30 "观看视频:", handle_score_color(
31 scores["video_num"], const.video_num_all), ",",
32 "文章时长:", handle_score_color(
33 scores["article_time"], const.article_time_all), ",",
34 "视频时长:", handle_score_color(
35 scores["video_time"], const.video_time_all), ",",
36 "\n每日登陆:", handle_score_color(scores["login"], const.login_all), ",",
37 "每日答题:", handle_score_color(scores["daily"], const.daily_all), ",",
38 "每周答题:", handle_score_color(scores["weekly"], const.weekly_all), ",",
39 "专项答题:", handle_score_color(scores["zhuanxiang"], const.zhuanxiang_all))
40 return total, scores
41
42
43def show_scorePush(cookies, chat_id=None):

Callers 7

start_learnFunction · 0.90
articleFunction · 0.90
videoFunction · 0.90
answer_questionFunction · 0.90
dailyFunction · 0.90
weeklyFunction · 0.90
zhuanxiangFunction · 0.90

Calls 2

get_scoreFunction · 0.85
handle_score_colorFunction · 0.85

Tested by

no test coverage detected