nonebot-plugin-cp-broadcast 2.3.0__tar.gz → 2.3.2__tar.gz
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.
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/PKG-INFO +5 -3
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/nonebot_plugin_cp_broadcast/aiosqlite.py +2 -3
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/nonebot_plugin_cp_broadcast/codeforces.py +1 -1
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/pyproject.toml +1 -1
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/LICENSE +0 -0
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/README.md +0 -0
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/nonebot_plugin_cp_broadcast/__init__.py +0 -0
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/nonebot_plugin_cp_broadcast/atcoder.py +0 -0
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/nonebot_plugin_cp_broadcast/config.py +0 -0
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/nonebot_plugin_cp_broadcast/nowcoder.py +0 -0
- {nonebot_plugin_cp_broadcast-2.3.0 → nonebot_plugin_cp_broadcast-2.3.2}/nonebot_plugin_cp_broadcast/utils.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-cp-broadcast
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Summary: Codeforces、牛客、AtCoder平台比赛查询,ACMer 必备
|
|
5
|
-
Home-page: https://github.com/HuParry/nonebot-plugin-cp-broadcast
|
|
6
5
|
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
7
|
Author: HuParry
|
|
8
8
|
Author-email: hu_parry@qq.com
|
|
9
9
|
Requires-Python: >=3.8
|
|
@@ -15,12 +15,14 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
19
|
Requires-Dist: aiosqlite (>=0.13.0,<0.14.0)
|
|
19
20
|
Requires-Dist: bs4 (>=0.0.1)
|
|
20
21
|
Requires-Dist: fake-useragent (>=1.1.3)
|
|
21
22
|
Requires-Dist: httpx (>=0.20.0,<1.0.0)
|
|
22
23
|
Requires-Dist: nonebot-adapter-onebot (>=2.1.5)
|
|
23
24
|
Requires-Dist: nonebot2[fastapi] (>=2.0.0,<3.0.0)
|
|
25
|
+
Project-URL: Homepage, https://github.com/HuParry/nonebot-plugin-cp-broadcast
|
|
24
26
|
Project-URL: Repository, https://github.com/HuParry/nonebot-plugin-cp-broadcast
|
|
25
27
|
Description-Content-Type: text/markdown
|
|
26
28
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from .config import (cp_broadcast_path, cf_user_info_baseurl,
|
|
2
2
|
cf_user_status_baseurl, cf_user_rating_baseurl)
|
|
3
3
|
from nonebot.log import logger
|
|
4
|
-
import sqlite3
|
|
5
4
|
import aiosqlite
|
|
6
5
|
import json
|
|
7
6
|
import datetime
|
|
@@ -59,7 +58,6 @@ async def _on_startup():
|
|
|
59
58
|
passedTestCount INTEGER,
|
|
60
59
|
timeConsumedMillis INTEGER,
|
|
61
60
|
memoryConsumedBytes INTEGER
|
|
62
|
-
|
|
63
61
|
)
|
|
64
62
|
"""
|
|
65
63
|
)
|
|
@@ -290,7 +288,8 @@ async def addUser(id: str):
|
|
|
290
288
|
# else:
|
|
291
289
|
# status = False
|
|
292
290
|
|
|
293
|
-
|
|
291
|
+
if status:
|
|
292
|
+
await cursor.execute('INSERT OR REPLACE INTO CF_User_remarks VALUES (?, ?, ?)', Remarks.returnTuple())
|
|
294
293
|
|
|
295
294
|
await conn.commit()
|
|
296
295
|
|
|
@@ -167,7 +167,7 @@ async def rank_handle(bot: Bot):
|
|
|
167
167
|
async def remarks_handle(bot: Bot, args: Message = CommandArg()):
|
|
168
168
|
cf_list = args.extract_plain_text().split(' ')
|
|
169
169
|
if len(cf_list) != 2:
|
|
170
|
-
remarks.finish('格式不正确,请重新触发指令')
|
|
170
|
+
await remarks.finish('格式不正确,请重新触发指令')
|
|
171
171
|
|
|
172
172
|
cf_id, cf_remarks = cf_list
|
|
173
173
|
status = await modifyRemarks(cf_id, cf_remarks)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|