From 03c8df748317342acff4a0d3d20ba528ef5255f2 Mon Sep 17 00:00:00 2001 From: John Koestner Date: Sun, 24 Nov 2024 23:45:05 -0500 Subject: [PATCH] small tweak --- folioflex/configs/config.yml | 1 - folioflex/dashboard/app.py | 35 ++------------------------------ folioflex/utils/config_helper.py | 1 - 3 files changed, 2 insertions(+), 35 deletions(-) diff --git a/folioflex/configs/config.yml b/folioflex/configs/config.yml index b12daf5..964e759 100644 --- a/folioflex/configs/config.yml +++ b/folioflex/configs/config.yml @@ -38,7 +38,6 @@ config: smtp_password: None smtp_server: None smtp_port: 587 - matomo: None # only postgres is supported # used in dashboard to connecto to budget database: diff --git a/folioflex/dashboard/app.py b/folioflex/dashboard/app.py index ea6bedc..e592cdc 100644 --- a/folioflex/dashboard/app.py +++ b/folioflex/dashboard/app.py @@ -18,7 +18,7 @@ from dash import Input, Output, callback, dcc, html from folioflex.dashboard.components import auth -from folioflex.utils import config_helper, custom_logger +from folioflex.utils import custom_logger # _ ____ ____ # / \ | _ \| _ \ @@ -43,35 +43,8 @@ app.title = "FolioFlex" app._favicon = "folioflex_logo.ico" -# adding shortcut icons and google analytics -MATOMO = config_helper.MATOMO -if MATOMO: - analytics_script = ( - """ - - """ - ) -else: - analytics_script = "" -app.index_string = ( - """ +app.index_string = """ @@ -80,9 +53,6 @@ {%favicon%} {%css%} -""" - + analytics_script - + """ {%app_entry%} @@ -94,7 +64,6 @@ """ -) # creating the navbar page_links = [ diff --git a/folioflex/utils/config_helper.py b/folioflex/utils/config_helper.py index da99858..88ca1cc 100644 --- a/folioflex/utils/config_helper.py +++ b/folioflex/utils/config_helper.py @@ -200,4 +200,3 @@ def _config_reference(config, value, *sections): SMTP_PASSWORD = _other_config.get("smtp_password", None) SMTP_SERVER = _other_config.get("smtp_server", None) SMTP_PORT = _other_config.get("smtp_port", None) -MATOMO = _other_config.get("matomo", None)