diff --git a/embark/embark/context_processor.py b/embark/embark/context_processor.py index 735cf1e2..b1a88453 100644 --- a/embark/embark/context_processor.py +++ b/embark/embark/context_processor.py @@ -1,4 +1,5 @@ from django.conf import settings + def embark_version(request): return {'EMBARK_VERSION': settings.VERSION[0], 'EMBA_VERSION': settings.VERSION[1]} diff --git a/embark/embark/helper.py b/embark/embark/helper.py index be8a3fa8..0028b0de 100644 --- a/embark/embark/helper.py +++ b/embark/embark/helper.py @@ -9,6 +9,7 @@ # from embark.settings.deploy import EMBA_ROOT EMBA_ROOT = os.path.join('/home/benedikt/embark', 'emba') + def rnd_rgb_color(): """ Used for html colors ONLY @@ -67,13 +68,13 @@ def get_version_strings(): # gets us the currently installed version if Path(EMBA_ROOT + "/external/onlinechecker").exists(): # get the latest version nnumbers - with open(Path(EMBA_ROOT + "/external/onlinechecker/EMBA_VERSION.txt"),'r', encoding='UTF-8') as emba_version_file: + with open(Path(EMBA_ROOT + "/external/onlinechecker/EMBA_VERSION.txt"), 'r', encoding='UTF-8') as emba_version_file: stable_emba_version = emba_version_file.read().splitlines()[0] - with open(Path(EMBA_ROOT + "/external/onlinechecker/EMBA_CONTAINER_HASH.txt"),'r', encoding='UTF-8') as container_version_file: + with open(Path(EMBA_ROOT + "/external/onlinechecker/EMBA_CONTAINER_HASH.txt"), 'r', encoding='UTF-8') as container_version_file: container_version = container_version_file.read().splitlines()[0] - with open(Path(EMBA_ROOT + "/external/onlinechecker/NVD_HASH.txt"),'r', encoding='UTF-8') as nvd_version_file: + with open(Path(EMBA_ROOT + "/external/onlinechecker/NVD_HASH.txt"), 'r', encoding='UTF-8') as nvd_version_file: nvd_version = nvd_version_file.read().splitlines()[0] - with open(Path(EMBA_ROOT + "/external/onlinechecker/EMBA_GITHUB_HASH.txt"),'r', encoding='UTF-8') as emba_github_version_file: + with open(Path(EMBA_ROOT + "/external/onlinechecker/EMBA_GITHUB_HASH.txt"), 'r', encoding='UTF-8') as emba_github_version_file: github_emba_version = emba_github_version_file.read().splitlines()[0] else: stable_emba_version = "" @@ -82,13 +83,13 @@ def get_version_strings(): github_emba_version = "" if Path(EMBA_ROOT + "/config/VERSION.txt").exists(): - with open(Path(EMBA_ROOT + "/config/VERSION.txt"),'r', encoding='UTF-8') as emba_version_file: + with open(Path(EMBA_ROOT + "/config/VERSION.txt"), 'r', encoding='UTF-8') as emba_version_file: emba_version = emba_version_file.read().splitlines()[0] else: emba_version = "" if Path("./VERSION.txt").exists(): - with open(Path("./VERSION.txt"),'r', encoding='UTF-8') as embark_version_file: + with open(Path("./VERSION.txt"), 'r', encoding='UTF-8') as embark_version_file: embark_version = embark_version_file.read().splitlines()[0] else: embark_version = "" diff --git a/embark/embark/settings/dev.py b/embark/embark/settings/dev.py index eecb9e06..5395b322 100644 --- a/embark/embark/settings/dev.py +++ b/embark/embark/settings/dev.py @@ -142,7 +142,7 @@ 'level': 'WARNING', 'handlers': ['info_handler', 'console_handler'], }, - 'updater': { + 'updater': { 'handlers': ['debug_handler', 'info_handler', 'console_handler'], 'level': 'DEBUG', }, diff --git a/embark/templates/updater/check.html b/embark/templates/updater/check.html index 5b3e2ddd..2748adb1 100644 --- a/embark/templates/updater/check.html +++ b/embark/templates/updater/check.html @@ -1,8 +1,6 @@ {% load django_bootstrap5 %}