nonebot-plugin-dialectlist 2.7.0__tar.gz → 2.7.1__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.
Files changed (22) hide show
  1. {nonebot_plugin_dialectlist-2.7.0/nonebot_plugin_dialectlist.egg-info → nonebot_plugin_dialectlist-2.7.1}/PKG-INFO +4 -2
  2. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/README.md +3 -1
  3. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/__init__.py +9 -7
  4. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/storage.py +5 -2
  5. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1/nonebot_plugin_dialectlist.egg-info}/PKG-INFO +4 -2
  6. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/pyproject.toml +1 -1
  7. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/LICENSE +0 -0
  8. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/MANIFEST.in +0 -0
  9. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/config.py +0 -0
  10. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/migrations/fb88e4d27eb8_update_dialectlist.py +0 -0
  11. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/model.py +0 -0
  12. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/template/avatar/default.jpg +0 -0
  13. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/template/css/style.css +0 -0
  14. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/template/rank_template.j2 +0 -0
  15. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/time.py +0 -0
  16. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/usage.py +0 -0
  17. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist/utils.py +0 -0
  18. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist.egg-info/SOURCES.txt +0 -0
  19. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist.egg-info/dependency_links.txt +0 -0
  20. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist.egg-info/requires.txt +0 -0
  21. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/nonebot_plugin_dialectlist.egg-info/top_level.txt +0 -0
  22. {nonebot_plugin_dialectlist-2.7.0 → nonebot_plugin_dialectlist-2.7.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-dialectlist
3
- Version: 2.7.0
3
+ Version: 2.7.1
4
4
  Summary: 看看你群群友有多能说
5
5
  Author-email: Chen_Xu233 <woyerpa@outlook.com>
6
6
  License: MIT
@@ -42,7 +42,7 @@ nonebot-plugin-dialectlist
42
42
  <a href="https://pypi.python.org/pypi/nonebot-plugin-dialectlist">
43
43
  <img src="https://img.shields.io/pypi/v/nonebot-plugin-dialectlist.svg" alt="pypi">
44
44
  </a>
45
-
45
+
46
46
  <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
47
47
 
48
48
  <a href="https://qm.qq.com/q/Yty2yc9Bee">
@@ -50,6 +50,8 @@ nonebot-plugin-dialectlist
50
50
  </a>
51
51
  </p>
52
52
 
53
+ [![wakatime](https://wakatime.com/badge/user/114aee90-a5f9-49aa-b441-9eca7eebfda3/project/68aaa2a1-fb8a-4b00-bb66-ee67e8a3f3b0.svg)](https://wakatime.com/badge/user/114aee90-a5f9-49aa-b441-9eca7eebfda3/project/68aaa2a1-fb8a-4b00-bb66-ee67e8a3f3b0)
54
+
53
55
  \>💬**看看群友们这些天在群里水了多少话**💬<
54
56
  </div>
55
57
 
@@ -13,7 +13,7 @@ nonebot-plugin-dialectlist
13
13
  <a href="https://pypi.python.org/pypi/nonebot-plugin-dialectlist">
14
14
  <img src="https://img.shields.io/pypi/v/nonebot-plugin-dialectlist.svg" alt="pypi">
15
15
  </a>
16
-
16
+
17
17
  <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
18
18
 
19
19
  <a href="https://qm.qq.com/q/Yty2yc9Bee">
@@ -21,6 +21,8 @@ nonebot-plugin-dialectlist
21
21
  </a>
22
22
  </p>
23
23
 
24
+ [![wakatime](https://wakatime.com/badge/user/114aee90-a5f9-49aa-b441-9eca7eebfda3/project/68aaa2a1-fb8a-4b00-bb66-ee67e8a3f3b0.svg)](https://wakatime.com/badge/user/114aee90-a5f9-49aa-b441-9eca7eebfda3/project/68aaa2a1-fb8a-4b00-bb66-ee67e8a3f3b0)
25
+
24
26
  \>💬**看看群友们这些天在群里水了多少话**💬<
25
27
  </div>
26
28
 
@@ -35,7 +35,7 @@ from nonebot_plugin_chatrecorder import get_message_records
35
35
  from nonebot_plugin_uninfo import Session, Uninfo, get_session
36
36
 
37
37
  from .config import Config, plugin_config
38
- from .storage import build_cache, get_cache
38
+ # from .storage import build_cache, get_cache
39
39
  from .time import (
40
40
  get_datetime_fromisoformat_with_timezone,
41
41
  get_datetime_now_with_timezone,
@@ -85,7 +85,8 @@ build_cache_cmd = on_command('build_cache', aliases={'重建缓存'}, block=True
85
85
 
86
86
  @build_cache_cmd.handle()
87
87
  async def _build_cache(bot: Bot, event: Event):
88
- await saa.Text('正在重建缓存,请稍等。').send(reply=True)
88
+ return
89
+ await saa.Text('正在重建缓存,请稍等。').send(reply=True) # type: ignore
89
90
  await build_cache()
90
91
  await saa.Text('重建缓存完成。').send(reply=True)
91
92
 
@@ -302,11 +303,12 @@ async def handle_rank(
302
303
  keyword = state['keyword']
303
304
 
304
305
  if plugin_config.counting_cache:
305
- if keyword:
306
- await saa.Text('已开启缓存~缓存不支持关键词查询哦').finish()
307
- t1 = t.time()
308
- raw_rank = await get_cache(start, stop, id)
309
- logger.debug(f'获取计数消息花费时间:{t.time() - t1}')
306
+ await saa.Text("缓存暂不支持").finish()
307
+ # if keyword:
308
+ # await saa.Text('已开启缓存~缓存不支持关键词查询哦').finish()
309
+ # t1 = t.time()
310
+ # raw_rank = await get_cache(start, stop, id)
311
+ # logger.debug(f'获取计数消息花费时间:{t.time() - t1}')
310
312
  else:
311
313
  t1 = t.time()
312
314
  messages = await get_message_records(
@@ -9,10 +9,10 @@ from nonebot.message import event_postprocessor
9
9
  from nonebot.params import Depends
10
10
  from nonebot_plugin_chatrecorder import get_message_records
11
11
  from nonebot_plugin_chatrecorder.utils import remove_timezone
12
+ from nonebot_plugin_uninfo import Session, get_session
13
+ from nonebot_plugin_uninfo.orm import SessionModel,get_session_persist_id
12
14
  from nonebot_plugin_localstore import get_data_file
13
15
  from nonebot_plugin_orm import get_session
14
- from nonebot_plugin_session import Session, extract_session
15
- from nonebot_plugin_session_orm import SessionModel, get_session_persist_id
16
16
  from sqlalchemy import delete, or_, select
17
17
 
18
18
  from .config import plugin_config
@@ -131,3 +131,6 @@ async def _(bot: Bot, event: Event, session: Session = Depends(extract_session))
131
131
  db_session.add(user_cache)
132
132
  await db_session.commit()
133
133
  logger.debug("已计入缓存")
134
+
135
+
136
+ # TODO: 修复缓存储存
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-dialectlist
3
- Version: 2.7.0
3
+ Version: 2.7.1
4
4
  Summary: 看看你群群友有多能说
5
5
  Author-email: Chen_Xu233 <woyerpa@outlook.com>
6
6
  License: MIT
@@ -42,7 +42,7 @@ nonebot-plugin-dialectlist
42
42
  <a href="https://pypi.python.org/pypi/nonebot-plugin-dialectlist">
43
43
  <img src="https://img.shields.io/pypi/v/nonebot-plugin-dialectlist.svg" alt="pypi">
44
44
  </a>
45
-
45
+
46
46
  <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
47
47
 
48
48
  <a href="https://qm.qq.com/q/Yty2yc9Bee">
@@ -50,6 +50,8 @@ nonebot-plugin-dialectlist
50
50
  </a>
51
51
  </p>
52
52
 
53
+ [![wakatime](https://wakatime.com/badge/user/114aee90-a5f9-49aa-b441-9eca7eebfda3/project/68aaa2a1-fb8a-4b00-bb66-ee67e8a3f3b0.svg)](https://wakatime.com/badge/user/114aee90-a5f9-49aa-b441-9eca7eebfda3/project/68aaa2a1-fb8a-4b00-bb66-ee67e8a3f3b0)
54
+
53
55
  \>💬**看看群友们这些天在群里水了多少话**💬<
54
56
  </div>
55
57
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nonebot-plugin-dialectlist"
3
- version = "2.7.0"
3
+ version = "2.7.1"
4
4
  description = "看看你群群友有多能说"
5
5
  authors = [{ name = "Chen_Xu233", email = "woyerpa@outlook.com" }]
6
6
  dependencies = [