Fix système arriver départ V1
This commit is contained in:
parent
01dd4979d8
commit
d9afa32828
18 changed files with 1367 additions and 291 deletions
|
|
@ -5,9 +5,14 @@ import os
|
|||
from collections import deque
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
# Chemins des fichiers
|
||||
SETTINGS_FILE = "data/security_settings.json"
|
||||
WHITELIST_FILE = "data/whitelist.json"
|
||||
# Chemins ABSOLUS
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
DATA_DIR = os.path.join(BASE_DIR, "..", "..", "data")
|
||||
SETTINGS_FILE = os.path.join(DATA_DIR, "security_settings.json")
|
||||
WHITELIST_FILE = os.path.join(DATA_DIR, "whitelist.json")
|
||||
|
||||
# Créer le dossier data/ s'il n'existe pas
|
||||
os.makedirs(DATA_DIR, exist_ok=True)
|
||||
|
||||
# Cache TTL en secondes (5 secondes pour avoir une réactivité acceptable)
|
||||
CACHE_TTL = 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue