ソースを参照

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

Yeuoly 5 ヶ月 前
コミット
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"),