update applications/common/helper.py.

修正between查询的类型
This commit is contained in:
杭州-伍个一
2021-12-15 03:18:23 +00:00
committed by Gitee
parent 6bfb10e4a4
commit 56563657e8
+1 -1
View File
@@ -101,7 +101,7 @@ class ModelFilter:
:param value: 值
"""
if value1 and value2 and value1 != '' and value2 != '':
self.filter_field[field_name] = {"data": [value1, value2], "type": self.type_vague}
self.filter_field[field_name] = {"data": [value1, value2], "type": self.type_between}
def get_filter(self, model: db.Model):
"""