mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 19:10:55 +00:00
feat: 轻雪天气实时天气功能已更新
This commit is contained in:
@ -12,6 +12,7 @@ from pydantic import BaseModel
|
||||
class LiteModel(BaseModel):
|
||||
TABLE_NAME: str = None
|
||||
id: int = None
|
||||
|
||||
def dump(self, *args, **kwargs):
|
||||
if pydantic.__version__ < "1.8.2":
|
||||
return self.dict(*args, **kwargs)
|
||||
|
Reference in New Issue
Block a user