nonebot-plugin-osubot 6.22.3__py3-none-any.whl → 6.23.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nonebot-plugin-osubot might be problematic. Click here for more details.
- nonebot_plugin_osubot/draw/bp.py +0 -4
- nonebot_plugin_osubot/draw/score.py +0 -8
- nonebot_plugin_osubot/matcher/pr.py +0 -4
- {nonebot_plugin_osubot-6.22.3.dist-info → nonebot_plugin_osubot-6.23.0.dist-info}/METADATA +1 -1
- {nonebot_plugin_osubot-6.22.3.dist-info → nonebot_plugin_osubot-6.23.0.dist-info}/RECORD +6 -6
- {nonebot_plugin_osubot-6.22.3.dist-info → nonebot_plugin_osubot-6.23.0.dist-info}/WHEEL +0 -0
nonebot_plugin_osubot/draw/bp.py
CHANGED
|
@@ -29,8 +29,6 @@ async def draw_bp(
|
|
|
29
29
|
source: str,
|
|
30
30
|
) -> BytesIO:
|
|
31
31
|
scores = await get_user_scores(uid, mode, "best", source=source, legacy_only=not is_lazer)
|
|
32
|
-
if not is_lazer:
|
|
33
|
-
scores = [i for i in scores if any(mod.acronym == "CL" for mod in i.mods)]
|
|
34
32
|
if mods:
|
|
35
33
|
mods_ls = get_mods_list(scores, mods)
|
|
36
34
|
if low_bound > len(mods_ls):
|
|
@@ -50,8 +48,6 @@ async def draw_bp(
|
|
|
50
48
|
# 判断是否开启lazer模式
|
|
51
49
|
if is_lazer:
|
|
52
50
|
score_info.legacy_total_score = score_info.total_score
|
|
53
|
-
if not is_lazer and Mod(acronym="CL") in score_info.mods:
|
|
54
|
-
score_info.mods.remove(Mod(acronym="CL"))
|
|
55
51
|
if score_info.ruleset_id == 3 and not is_lazer:
|
|
56
52
|
score_info.accuracy = cal_legacy_acc(score_info.statistics)
|
|
57
53
|
if not is_lazer:
|
|
@@ -79,8 +79,6 @@ async def draw_score(
|
|
|
79
79
|
scores = await get_user_scores(uid, mode, "recent", source=source, legacy_only=not is_lazer, limit=best)
|
|
80
80
|
if not scores:
|
|
81
81
|
raise NetworkError("未查询到游玩记录")
|
|
82
|
-
if not is_lazer:
|
|
83
|
-
scores = [i for i in scores if Mod(acronym="CL") in i.mods]
|
|
84
82
|
if project in ("recent", "pr"):
|
|
85
83
|
if len(scores) < best:
|
|
86
84
|
raise NetworkError("未查询到游玩记录")
|
|
@@ -149,10 +147,6 @@ async def get_score_data(
|
|
|
149
147
|
]
|
|
150
148
|
else:
|
|
151
149
|
score_ls = await get_ppysb_map_scores(map_json["checksum"], uid, mode)
|
|
152
|
-
if not is_lazer:
|
|
153
|
-
score_ls = [i for i in score_ls if Mod(acronym="CL") in i.mods]
|
|
154
|
-
for i in score_ls:
|
|
155
|
-
i.mods.remove(Mod(acronym="CL"))
|
|
156
150
|
if not score_ls:
|
|
157
151
|
raise NetworkError("未查询到游玩记录")
|
|
158
152
|
if mods:
|
|
@@ -804,8 +798,6 @@ def cal_legacy_rank(score_info: UnifiedScore, is_hidden: bool):
|
|
|
804
798
|
def cal_score_info(is_lazer: bool, score_info: UnifiedScore) -> UnifiedScore:
|
|
805
799
|
if is_lazer:
|
|
806
800
|
score_info.legacy_total_score = score_info.total_score
|
|
807
|
-
if not is_lazer and Mod(acronym="CL") in score_info.mods:
|
|
808
|
-
score_info.mods = [i for i in score_info.mods if i.acronym != "CL"]
|
|
809
801
|
if score_info.ruleset_id == 3 and not is_lazer:
|
|
810
802
|
score_info.accuracy = cal_legacy_acc(score_info.statistics)
|
|
811
803
|
if not is_lazer:
|
|
@@ -43,8 +43,6 @@ async def _recent(event: Event, state: T_State):
|
|
|
43
43
|
f"在查找用户:{state['username']} {NGM[state['mode']]}模式"
|
|
44
44
|
f" {lazer_mode}{mods} 最近{state['range']}成绩时 {str(e)}"
|
|
45
45
|
).finish(reply_to=True)
|
|
46
|
-
if not player.lazer_mode:
|
|
47
|
-
scores = [i for i in scores if any(mod.acronym == "CL" for mod in i.mods)]
|
|
48
46
|
for score in scores:
|
|
49
47
|
cal_score_info(player.lazer_mode, score)
|
|
50
48
|
pic = await draw_pfm("relist", state["user"], scores, scores, mode, state["source"], is_lazer=player.lazer_mode)
|
|
@@ -99,8 +97,6 @@ async def _pr(event: Event, state: T_State):
|
|
|
99
97
|
f"在查找用户:{state['username']} {NGM[state['mode']]}模式"
|
|
100
98
|
f" {lazer_mode}{mods} 最近{state['range']}成绩时 {str(e)}"
|
|
101
99
|
).finish(reply_to=True)
|
|
102
|
-
if not player.lazer_mode:
|
|
103
|
-
scores = [i for i in scores if any(mod.acronym == "CL" for mod in i.mods)]
|
|
104
100
|
for score_info in scores:
|
|
105
101
|
cal_score_info(player.lazer_mode, score_info)
|
|
106
102
|
pic = await draw_pfm(
|
|
@@ -8,7 +8,7 @@ nonebot_plugin_osubot/database/__init__.py,sha256=7CDo9xU_DGLQ6uTj_mU_Px92phg_DM
|
|
|
8
8
|
nonebot_plugin_osubot/database/models.py,sha256=VF_MxR70eRbiIHtqWjpE_Vea4xR38X0RJiQIO96mjsY,1595
|
|
9
9
|
nonebot_plugin_osubot/draw/__init__.py,sha256=dRELA2Vi4gTe8v48q0iHXLDOEj7Unk-_ChDXJp3qkhg,265
|
|
10
10
|
nonebot_plugin_osubot/draw/bmap.py,sha256=GzEiUEkcwdX6ixZ-qmM8TQQf0imD8taur3eX4lJ5wVg,5128
|
|
11
|
-
nonebot_plugin_osubot/draw/bp.py,sha256=
|
|
11
|
+
nonebot_plugin_osubot/draw/bp.py,sha256=EffKW5HcbqQheGRzr8VAU5q6OJ1je21XxVJ2JTmPL9E,8948
|
|
12
12
|
nonebot_plugin_osubot/draw/catch_preview.py,sha256=uSYoTqfdxRy4anpH9Uhj8NntPo008pzw1t6xRMTBBkI,1397
|
|
13
13
|
nonebot_plugin_osubot/draw/catch_preview_templates/css/style.css,sha256=2I1VwycLhKJMxwjHj19zAV6MBkFMLu_qLunpoiRlGlM,3919
|
|
14
14
|
nonebot_plugin_osubot/draw/catch_preview_templates/js/beatmap/beatmap.js,sha256=xh6RUz3D40-HJHu0KGqac_eAIHGoAR12bF58V9ft7iQ,5784
|
|
@@ -44,7 +44,7 @@ nonebot_plugin_osubot/draw/info.py,sha256=i2YcJmSdTpwhZl_nDe7GJv4jQTB8_9oBfpq2Zw
|
|
|
44
44
|
nonebot_plugin_osubot/draw/map.py,sha256=4M8xRd0dIbC5g1s8I4eTZ3vRglM6r_TSznFOZ62K2wk,8654
|
|
45
45
|
nonebot_plugin_osubot/draw/match_history.py,sha256=GBJl6lAA27U7NSMC2isEzD_YsoIPAeG6ijDu7Oflcl0,997
|
|
46
46
|
nonebot_plugin_osubot/draw/rating.py,sha256=pA7mGLI4IujmYB6kQf_tSkR7mZGpUAVLRLyaAsZhqTM,20397
|
|
47
|
-
nonebot_plugin_osubot/draw/score.py,sha256=
|
|
47
|
+
nonebot_plugin_osubot/draw/score.py,sha256=65XjTD5nZ3lJt6yvlv2DWcpu14IKFkqWmD88Q0RnuvQ,29218
|
|
48
48
|
nonebot_plugin_osubot/draw/static.py,sha256=wdlzNO3xyiauKiMLr_h-B9uAsFU7fX_Y-fOusYKZP3k,4132
|
|
49
49
|
nonebot_plugin_osubot/draw/taiko_preview.py,sha256=tqhuHSdxUJEuXqKHMJDeSLdusuJhSnMMiaG5FbUnaJw,11441
|
|
50
50
|
nonebot_plugin_osubot/draw/templates/bpa_chart.html,sha256=R-fO46HtmC4y3brMFGz6MQkna8ke7WGHVIgUnvcY248,7012
|
|
@@ -74,7 +74,7 @@ nonebot_plugin_osubot/matcher/medal.py,sha256=OlJTwBvh0kGx_KWhjksozI910c8QdaVFBg
|
|
|
74
74
|
nonebot_plugin_osubot/matcher/mu.py,sha256=l3Ebz47o46EvN2nvo9-zzQI4CTaLMcd5XW0qljqSGIM,445
|
|
75
75
|
nonebot_plugin_osubot/matcher/osu_help.py,sha256=64rOkYEOETvU8AF__0xLZjVRs3cTac0D1XEultPK_kM,728
|
|
76
76
|
nonebot_plugin_osubot/matcher/osudl.py,sha256=yLEblYnLprTf2T00FiRWJ8CuCd0IHyUY9Ka68yAKOXo,872
|
|
77
|
-
nonebot_plugin_osubot/matcher/pr.py,sha256=
|
|
77
|
+
nonebot_plugin_osubot/matcher/pr.py,sha256=xGjQvEJHmIZkq9luu8TtbjBB8FykGI4Wzi_-eXghOjQ,4951
|
|
78
78
|
nonebot_plugin_osubot/matcher/preview.py,sha256=n9wgdNG9SF_JQ78nShTsTElJkBDJQr67DRc8Q9sVcCo,1896
|
|
79
79
|
nonebot_plugin_osubot/matcher/rank.py,sha256=sFEim3cR_vswzLmbagjqy-ypolcprAxQpawiSEcFqEI,3619
|
|
80
80
|
nonebot_plugin_osubot/matcher/rating.py,sha256=JY1Q1ELU3Y1FhQ7kVWVkgVsYEVxkAcxjsoMcwC_u234,450
|
|
@@ -408,6 +408,6 @@ nonebot_plugin_osubot/schema/sayo_beatmap.py,sha256=lS1PQZ-HvHl0VhkzlI0-pNLeJrLY
|
|
|
408
408
|
nonebot_plugin_osubot/schema/score.py,sha256=gxF_RVSUOyj7EF_q3XeHhNj5qg19MW-B1aePjnTmi08,3233
|
|
409
409
|
nonebot_plugin_osubot/schema/user.py,sha256=sxNmqymG_kIVuGuzfchSv9UML6NPG70cqo2_h5xDIpM,2250
|
|
410
410
|
nonebot_plugin_osubot/utils/__init__.py,sha256=pyv8XxBcCOeQVDj1E4dgvktzcefgQXfKBlarsYGx1sg,815
|
|
411
|
-
nonebot_plugin_osubot-6.
|
|
412
|
-
nonebot_plugin_osubot-6.
|
|
413
|
-
nonebot_plugin_osubot-6.
|
|
411
|
+
nonebot_plugin_osubot-6.23.0.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
|
|
412
|
+
nonebot_plugin_osubot-6.23.0.dist-info/METADATA,sha256=XK7OxlxWEiM1vCKm4_4A8u6vRMh6ZQXl-OrdF9zxq8A,4476
|
|
413
|
+
nonebot_plugin_osubot-6.23.0.dist-info/RECORD,,
|
|
File without changes
|