We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a582bb8 commit 3be22dfCopy full SHA for 3be22df
app/dao/template_email_files_dao.py
@@ -37,7 +37,7 @@ def dao_get_template_email_files_by_template_id(template_id, template_version=No
37
select(TemplateEmailFileHistory)
38
.where(TemplateEmailFileHistory.template_id == template_id)
39
.where(TemplateEmailFileHistory.template_version <= template_version)
40
- .where(not TemplateEmailFileHistory.pending)
+ .where(TemplateEmailFileHistory.pending.is_(False))
41
.order_by(TemplateEmailFileHistory.id)
42
.order_by(TemplateEmailFileHistory.version.desc())
43
.distinct(TemplateEmailFileHistory.id)
0 commit comments