tum 1 年之前
父節點
當前提交
6adec5981c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/backend/views.py

+ 2 - 2
app/backend/views.py

@@ -342,8 +342,8 @@ def gen_report_notebook():
342 342
             reg_cond = f'(?=.*pppoe-out)(?=.*{sla_splt[-1]})'
343 343
 
344 344
             pprint(reg_cond)
345
-            # temp_addr = list(c2.find({'ts': {'$lte': utc, '$gte': yest }, 'interface': {'$regex': reg_cond,  '$not': { '$regex': '^pppoe-out5'}, '$options': 'i' }, 'invalid': 'false'}).sort("ts", -1))
346
-            temp_addr = list(c2.find({'ts': {'$lte': utc, '$gte': yest }, 'interface': {'$regex': reg_cond, '$options': 'i' }, 'invalid': 'false'}).sort("ts", -1))
345
+            temp_addr = list(c2.find({'ts': {'$lte': utc, '$gte': yest }, 'interface': {'$regex': reg_cond,  '$not': { '$regex': '^pppoe-out5'}, '$options': 'i' }, 'invalid': 'false'}).sort("ts", -1))
346
+            # temp_addr = list(c2.find({'ts': {'$lte': utc, '$gte': yest }, 'interface': {'$regex': reg_cond, '$options': 'i' }, 'invalid': 'false'}).sort("ts", -1))
347 347
             # temp_addr = list(c2.find({'interface': {'$regex': reg_cond, '$options': 'i' }, 'invalid': 'false'}).sort("ts", -1))
348 348
             pprint("-------")
349 349
             pprint("temp addr")