瀏覽代碼

fix: undefined attribute 'query' on MessageAnnotation (#13852)

Yeuoly 2 月之前
父節點
當前提交
bea10b4356
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/models/model.py

+ 1 - 1
api/models/model.py

@@ -1289,7 +1289,7 @@ class MessageAnnotation(Base):
         return account
         return account
 
 
 
 
-class AppAnnotationHitHistory(Base):
+class AppAnnotationHitHistory(db.Model):  # type: ignore[name-defined]
     __tablename__ = "app_annotation_hit_histories"
     __tablename__ = "app_annotation_hit_histories"
     __table_args__ = (
     __table_args__ = (
         db.PrimaryKeyConstraint("id", name="app_annotation_hit_histories_pkey"),
         db.PrimaryKeyConstraint("id", name="app_annotation_hit_histories_pkey"),