tum пре 1 година
родитељ
комит
6adec5981c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/backend/views.py

+ 2 - 2
app/backend/views.py

342
             reg_cond = f'(?=.*pppoe-out)(?=.*{sla_splt[-1]})'
342
             reg_cond = f'(?=.*pppoe-out)(?=.*{sla_splt[-1]})'
343
 
343
 
344
             pprint(reg_cond)
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
             # temp_addr = list(c2.find({'interface': {'$regex': reg_cond, '$options': 'i' }, 'invalid': 'false'}).sort("ts", -1))
347
             # temp_addr = list(c2.find({'interface': {'$regex': reg_cond, '$options': 'i' }, 'invalid': 'false'}).sort("ts", -1))
348
             pprint("-------")
348
             pprint("-------")
349
             pprint("temp addr")
349
             pprint("temp addr")