fix: WordBank.check()

This commit is contained in:
Cinte 2022-08-21 16:54:28 +08:00 committed by GitHub
parent 1508782f49
commit db1f4b2b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,7 +216,7 @@ class WordBank(db.Model):
:param word_type: 词条类型
"""
query = cls.query
sql_text = "SELECT * FROM public.word_bank where 1 = 1"
sql_text = "SELECT * FROM public.word_bank2 where 1 = 1"
# 救命没找到gino的正则表达式方法暂时使用sql语句
if isinstance(event, GroupMessageEvent):
if word_scope: