diff --git a/docs/deployment/fandq.md b/docs/deployment/fandq.md index 4ef6d64d..13d7d020 100644 --- a/docs/deployment/fandq.md +++ b/docs/deployment/fandq.md @@ -55,3 +55,4 @@ tag: - [Nonebot2](https://nonebot.dev)提供的框架支持 - [nonebot-plugin-htmlrender](https://github.com/kexue-z/nonebot-plugin-htmlrender/tree/master)提供的渲染功能 - [nonebot-plugin-alconna](https://github.com/ArcletProject/nonebot-plugin-alconna)提供的命令解析功能 +- [MiSans](https://hyperos.mi.com/font/zh/),[MapleMono](https://gitee.com/mirrors/Maple-Mono)提供的字体,且遵守了相关字体开源协议 diff --git a/liteyuki/utils/base/data.py b/liteyuki/utils/base/data.py index 7c99a8eb..abca80ac 100644 --- a/liteyuki/utils/base/data.py +++ b/liteyuki/utils/base/data.py @@ -3,6 +3,7 @@ import pickle import sqlite3 from types import NoneType from typing import Any +from packaging.version import parse import nonebot import pydantic @@ -14,7 +15,7 @@ class LiteModel(BaseModel): id: int = None def dump(self, *args, **kwargs): - if pydantic.__version__ < "1.8.2": + if parse(pydantic.__version__) < parse("2.0.0"): return self.dict(*args, **kwargs) else: return self.model_dump(*args, **kwargs) diff --git a/requirements.txt b/requirements.txt index 006f13e6..d593ac3a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,6 +11,7 @@ nonebot-plugin-htmlrender==0.3.1 nonebot-adapter-onebot==2.4.3 nonebot-plugin-alconna==0.43.0 nonebot_plugin_apscheduler==0.4.0 +packaging==21.4 playwright==1.17.2 psutil==5.9.8 py-cpuinfo==9.0.0