Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
UTI: Move constatns to a separate file
[csit.git]
/
resources
/
tools
/
dash
/
app
/
pal
/
news
/
tables.py
diff --git
a/resources/tools/dash/app/pal/news/tables.py
b/resources/tools/dash/app/pal/news/tables.py
index
53b2460
..
6272814
100644
(file)
--- 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
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:
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=(
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'])})"
)
),
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=(
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'])})"
)
),
f"({len(progressions['Test Name'])})"
)
),