From 2e422c93e5ef49efd9ab4045c03b647ea7989cba Mon Sep 17 00:00:00 2001 From: adator <85586985+adator85@users.noreply.github.com> Date: Sun, 16 Nov 2025 13:35:09 +0100 Subject: [PATCH] Base.py refactoring. Nothing fancy. --- core/base.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/core/base.py b/core/base.py index 590129b..fbb404a 100644 --- a/core/base.py +++ b/core/base.py @@ -26,7 +26,8 @@ class Base: self.Utils = loader.Utils self.logs = loader.Logs - self.check_for_new_version(True) # Verifier si une nouvelle version est disponible + # Check if new Defender version is available + self.check_for_new_version(True) # Liste des timers en cours self.running_timers: list[threading.Timer] = self.Settings.RUNNING_TIMERS @@ -43,9 +44,14 @@ class Base: # Création du lock self.lock = self.Settings.LOCK - self.install: bool = False # Initialisation de la variable d'installation - self.engine, self.cursor = self.db_init() # Initialisation de la connexion a la base de données - # self.__create_db() # Initialisation de la base de données + # Init install variable + self.install: bool = False + + # Init database connection + self.engine, self.cursor = self.db_init() + + # Create the database + # self.__create_db() def init(self) -> None: self.__create_db()