aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/news/tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-07-20 15:51:21 +0200
committerTibor Frank <tifrank@cisco.com>2022-07-21 07:45:39 +0000
commitae1fe880286d7b0414664bce2b2c7c91c3f543f3 (patch)
tree5790af6de3884e0aa6918d44f23aca59cf0d86a7 /resources/tools/dash/app/pal/news/tables.py
parent739e01de7a65045dc42e6c16406a6d054da72f7b (diff)
UTI: Move constatns to a separate file
Change-Id: If3796b71d02bcf5a92612585dfa8867e5039f037 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/news/tables.py')
-rw-r--r--resources/tools/dash/app/pal/news/tables.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/resources/tools/dash/app/pal/news/tables.py b/resources/tools/dash/app/pal/news/tables.py
index 53b24608d5..6272814165 100644
--- a/resources/tools/dash/app/pal/news/tables.py
+++ b/resources/tools/dash/app/pal/news/tables.py
@@ -17,9 +17,7 @@
import pandas as pd
import dash_bootstrap_components as dbc
-
-# Time period for regressions and progressions.
-TIME_PERIOD = 21 # [days]
+from ..utils.constants import Constants as C
def table_news(data: pd.DataFrame, job: str) -> list:
@@ -57,7 +55,7 @@ def table_news(data: pd.DataFrame, job: str) -> list:
class_name="p-0",
size="lg",
children=(
- f"Regressions during the last {TIME_PERIOD} days "
+ f"Regressions during the last {C.NEWS_TIME_PERIOD} days "
f"({len(regressions['Test Name'])})"
)
),
@@ -68,7 +66,7 @@ def table_news(data: pd.DataFrame, job: str) -> list:
class_name="p-0",
size="lg",
children=(
- f"Progressions during the last {TIME_PERIOD} days "
+ f"Progressions during the last {C.NEWS_TIME_PERIOD} days "
f"({len(progressions['Test Name'])})"
)
),