Modify utils log code for more clarity

This commit is contained in:
kitoy 2025-12-21 19:31:39 +01:00
parent 685502aec7
commit 0803124c14

View File

@ -27,7 +27,9 @@ def login_required(f):
def append_to_log(log_line, user): def append_to_log(log_line, user):
tmp=""
log_file=os.path.join(DOSSIER_PERSO, user, "log.txt") log_file=os.path.join(DOSSIER_PERSO, user, "log.txt")
if os.path.exists(log_file):
logs=open(log_file, "r") logs=open(log_file, "r")
tmp=logs.read() tmp=logs.read()
logs.close() logs.close()