mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-07 21:00:21 +08:00
fix bug
This commit is contained in:
@@ -249,7 +249,7 @@ class WordBank(Model):
|
|||||||
else:
|
else:
|
||||||
query = query.filter(Q(group_id=event.group_id) | Q(word_scope=0))
|
query = query.filter(Q(group_id=event.group_id) | Q(word_scope=0))
|
||||||
else:
|
else:
|
||||||
query = query.filter(Q(cword_scope=2) | Q(word_scope=0))
|
query = query.filter(Q(word_scope=2) | Q(word_scope=0))
|
||||||
if word_type:
|
if word_type:
|
||||||
query = query.filter(word_scope=word_type)
|
query = query.filter(word_scope=word_type)
|
||||||
# 完全匹配
|
# 完全匹配
|
||||||
|
|||||||
Reference in New Issue
Block a user