mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
Base.py refactoring. Nothing fancy.
This commit is contained in:
14
core/base.py
14
core/base.py
@@ -26,7 +26,8 @@ class Base:
|
|||||||
self.Utils = loader.Utils
|
self.Utils = loader.Utils
|
||||||
self.logs = loader.Logs
|
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
|
# Liste des timers en cours
|
||||||
self.running_timers: list[threading.Timer] = self.Settings.RUNNING_TIMERS
|
self.running_timers: list[threading.Timer] = self.Settings.RUNNING_TIMERS
|
||||||
@@ -43,9 +44,14 @@ class Base:
|
|||||||
# Création du lock
|
# Création du lock
|
||||||
self.lock = self.Settings.LOCK
|
self.lock = self.Settings.LOCK
|
||||||
|
|
||||||
self.install: bool = False # Initialisation de la variable d'installation
|
# Init install variable
|
||||||
self.engine, self.cursor = self.db_init() # Initialisation de la connexion a la base de données
|
self.install: bool = False
|
||||||
# self.__create_db() # Initialisation de la base de données
|
|
||||||
|
# Init database connection
|
||||||
|
self.engine, self.cursor = self.db_init()
|
||||||
|
|
||||||
|
# Create the database
|
||||||
|
# self.__create_db()
|
||||||
|
|
||||||
def init(self) -> None:
|
def init(self) -> None:
|
||||||
self.__create_db()
|
self.__create_db()
|
||||||
|
|||||||
Reference in New Issue
Block a user