From 2e445d4e4e3dc4cbd7a8fae8b66f6725bf6fa24e Mon Sep 17 00:00:00 2001 From: wuaho Date: Tue, 12 Oct 2021 15:24:31 +0800 Subject: [PATCH] 1 --- core/config.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/config.py b/core/config.py index 385bde5..3b4ef26 100644 --- a/core/config.py +++ b/core/config.py @@ -161,9 +161,15 @@ class Settings(BaseSettings): }, { 'id': '<', 'title': '小于' + }, { + 'id': '<=', + 'title': '小于等于' }, { 'id': '>', 'title': '大于' + }, { + 'id': '>=', + 'title': '大于等于' }, { 'id': 'is not null', 'title': '有值' @@ -291,7 +297,6 @@ class Settings(BaseSettings): 'HOUR': lambda col, zone: func.toHour(func.addHours(col, zone)).label('date'), } - DEFAULT_FIELD: dict = { '#ip': 'ipv4', '#country': 'string', @@ -344,7 +349,6 @@ class Settings(BaseSettings): # 'online_ts': 'integer' } - class Config: case_sensitive = True