sqlalchemy is hard
This commit is contained in:
parent
968baabc0f
commit
03e51318b0
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ def scene_mst(old_path, languages):
|
|||
result = (db.session.query(db.QuestScene)
|
||||
.join(db.QuestScene.parts)
|
||||
.options(contains_eager(db.QuestScene.parts))
|
||||
.filter(db.QuestPart.beforeTalkName != "" or db.QuestPart.afterTalkName != "")
|
||||
.filter((db.QuestPart.beforeTalkName != "") | (db.QuestPart.afterTalkName != ""))
|
||||
.filter(db.QuestScene.parts.any())
|
||||
.all())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue