Browse Source

查询消息时去掉时间类型

lang 3 years ago
parent
commit
335cbbe45e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/AiController.py

+ 2 - 2
Controller/AiController.py

@@ -745,8 +745,8 @@ class AiView(View):
 
 
         if startTime and endTime:
         if startTime and endTime:
             qs = qs.filter(eventTime__range=(startTime, endTime))
             qs = qs.filter(eventTime__range=(startTime, endTime))
-        if eventType:
-            qs = qs.filter(eventType__contains=eventType)
+        # if eventType:
+        #     qs = qs.filter(eventType__contains=eventType)
         uids = request_dict.get('uids', None)
         uids = request_dict.get('uids', None)
         if uids:
         if uids:
             uid_list = uids.split(',')
             uid_list = uids.split(',')