修复重复调用时SrPush报错 (#42)

This commit is contained in:
RBAmeto 2024-10-11 12:59:42 +08:00 committed by GitHub
parent c1a198d6e4
commit 730e098ad0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@ from sqlmodel import Field
class SrPush(Push, table=True): class SrPush(Push, table=True):
__table_args__ = {'extend_existing': True}
bot_id: str = Field(title="平台") bot_id: str = Field(title="平台")
sr_uid: str = Field(default=None, title="星铁UID") sr_uid: str = Field(default=None, title="星铁UID")