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: Add Summary to News
[csit.git]
/
resources
/
tools
/
dash
/
app
/
pal
/
utils
/
constants.py
diff --git
a/resources/tools/dash/app/pal/utils/constants.py
b/resources/tools/dash/app/pal/utils/constants.py
index
b95a8f5
..
1f31185
100644
(file)
--- a/
resources/tools/dash/app/pal/utils/constants.py
+++ b/
resources/tools/dash/app/pal/utils/constants.py
@@
-17,7
+17,7
@@
does not need to be hard coded here, but can be read from environment variables.
"""
does not need to be hard coded here, but can be read from environment variables.
"""
-
+import logging
import dash_bootstrap_components as dbc
from dash import html
import dash_bootstrap_components as dbc
from dash import html
@@
-30,6
+30,11
@@
class Constants:
############################################################################
# General, application wide constants.
############################################################################
# General, application wide constants.
+ # Logging settings.
+ LOG_LEVEL = logging.INFO
+ LOG_FORMAT = "%(asctime)s: %(levelname)s: %(message)s"
+ LOG_DATE_FORMAT = "%Y/%m/%d %H:%M:%S"
+
# The application title.
TITLE = "FD.io CSIT"
# The application title.
TITLE = "FD.io CSIT"
@@
-256,6
+261,9
@@
class Constants:
# Time period for regressions and progressions.
NEWS_TIME_PERIOD = TIME_PERIOD # [days]
# Time period for regressions and progressions.
NEWS_TIME_PERIOD = TIME_PERIOD # [days]
+ # Time period for summary tables.
+ NEWS_SUMMARY_PERIOD = 7 # [days]
+
############################################################################
# Report.
############################################################################
# Report.