From 37db94e79a9f22fc939d752c08abffe2095f458b Mon Sep 17 00:00:00 2001
From: Christoph Alt <christoph.alt@fau.de>
Date: Mon, 24 Oct 2022 14:29:21 +0200
Subject: [PATCH] using a variable

---
 dashboards/dashboard_list.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dashboards/dashboard_list.py b/dashboards/dashboard_list.py
index b7769ee..7da27b9 100644
--- a/dashboards/dashboard_list.py
+++ b/dashboards/dashboard_list.py
@@ -42,7 +42,7 @@ def _uniform_grid(arch: str, group_by: List[str]):
         timezone="browser",
     )
 
-    annotations = get_commit_annotation("InfluxDB-1", "red", "commits",
+    annotations = get_commit_annotation(dataSource, "red", "commits",
                                         measurment_name)
     return build_row_repeat_dashboard(options,
                                       row_repeat_var,
@@ -120,7 +120,7 @@ def dashboard_granular_gas():
         timezone="browser",
     )
 
-    annotations = get_commit_annotation("InfluxDB-1", "red", "commits",
+    annotations = get_commit_annotation(dataSource, "red", "commits",
                                         measurment_name)
     return build_row_repeat_dashboard(options, row_repeat_var,
                                       panel_repeat_var, dataSource,
@@ -181,7 +181,7 @@ def dashboard_phasefieldallenchan():
                                  repeat=panel_repeat_var,
                                  format='W')
 
-    annotations = get_commit_annotation("InfluxDB-1", "red", "commits",
+    annotations = get_commit_annotation(dataSource, "red", "commits",
                                         measurment_name)
     dashboard = build_row_repeat_dashboard(options, row_repeat_var,
                                            panel_repeat_var, dataSource,
@@ -222,7 +222,7 @@ def dashboard_phasefieldallenchangpu():
                       "mpi_num_processes", "host", "executable",
                       "timeStepStrategy", "stencil_phase", "stencil_hydro"
                   ])
-    annotations = get_commit_annotation("InfluxDB-1", "red", "commits",
+    annotations = get_commit_annotation(dataSource, "red", "commits",
                                         measurment_name)
 
     return build_row_repeat_dashboard(options,
-- 
GitLab