_report_server/src/5adb6091618d550b2f1579ce482dc4269c251499/app/node_modules/sucrase">sucrase 30f7226d9a first commit 3 gadi atpakaļ supports-preserve-symlinks-flag 30f7226d9a first commit 3 gadi atpakaļ tailwind-color-palette 30f7226d9a first commit 3 gadi atpakaļ tailwindcss 30f7226d9a first commit 3 gadi atpakaļ thenify 30f7226d9a first commit 3 gadi atpakaļ thenify-all 30f7226d9a first commit 3 gadi atpakaļ to-regex-range 30f7226d9a first commit 3 gadi atpakaļ tr46 30f7226d9a first commit 3 gadi atpakaļ ts-interface-checker 30f7226d9a first commit 3 gadi atpakaļ uglify-js 30f7226d9a first commit 3 gadi atpakaļ underscore 30f7226d9a first commit 3 gadi atpakaļ upper-case 30f7226d9a first commit 3 gadi atpakaļ util-deprecate 30f7226d9a first commit 3 gadi atpakaļ valid-data-url 30f7226d9a first commit 3 gadi atpakaļ web-resource-inliner 30f7226d9a first commit 3 gadi atpakaļ webidl-conversions 30f7226d9a first commit 3 gadi atpakaļ whatwg-url 30f7226d9a first commit 3 gadi atpakaļ wrap-ansi 30f7226d9a first commit 3 gadi atpakaļ wrappy 30f7226d9a first commit 3 gadi atpakaļ y18n 30f7226d9a first commit 3 gadi atpakaļ yallist 30f7226d9a first commit 3 gadi atpakaļ yaml 30f7226d9a first commit 3 gadi atpakaļ yargs 30f7226d9a first commit 3 gadi atpakaļ yargs-parser 30f7226d9a first commit 3 gadi atpakaļ .yarn-integrity 30f7226d9a first commit 3 gadi atpakaļ network str · ef34c49a1f - Gogs: Simplico Git Service
瀏覽代碼

network str

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

+ 3 - 3
app/backend/views.py

@@ -371,7 +371,7 @@ def gen_report_notebook():
371 371
     df0 = pd.DataFrame(data)
372 372
     df0 = df0.explode(["header", "results"])
373 373
     try:
374
-        df1 = df0[["header", "results", "dt", "sla_name", "test_display_name", "verifier_name", "network", "address", "interface"]]
374
+        df1 = df0[["header", "results", "dt", "sla_name", "test_display_name", "verifier_name", "network", "address", "interface", "ts"]]
375 375
     except:
376 376
         df1 = df0[["header", "results", "dt", "sla_name", "test_display_name", "verifier_name",]]
377 377
 
@@ -381,7 +381,7 @@ def gen_report_notebook():
381 381
     #df1['results_text'] = df1['results'].apply(con_human)
382 382
     df1['results_text'] = df1.apply(con_human, axis=1)
383 383
     try:
384
-        df1['network_str'] = df1['network'] + " / " + df1['interface'] 
384
+        df1['network_str'] = df1['network'] + " / " + df1['interface'] + " / " + df1['ts'] 
385 385
     except:
386 386
         df1['network_str'] = "N/A"
387 387
 
@@ -478,7 +478,7 @@ def gen_report_task():
478 478
         pprint(f"dump = {r.status_code}")
479 479
 
480 480
     # r = requests.get(f'http://web:8000/backend/gen_report/?sla_name=BNG-144-VLAN20-Public&sla_name=BNG-144-VLAN10-Private&sla_name=BRAS-88-VLAN20-Public&sla_name=BRAS-88-VLAN10-Private&genReport=Gen+Report', timeout=None)
481
-    r = requests.get(f'http://web:8000/backend/gen_report/?genReport=Gen+Report', timeout=None)
481
+    r = requests.get(f'http://web:8000/backend/gen_report/?genReport=Gen+Report&sla_name=BNG-144-VLAN20-Public&sla_name=BNG-144-VLAN10-Private&sla_name=BRAS-88-VLAN20-Public&sla_name=BRAS-88-VLAN10-Private', timeout=None)
482 482
     if r.status_code == 200:
483 483
         pprint("genreport OK")
484 484
     else: