Modify utils log code for more clarity
This commit is contained in:
parent
685502aec7
commit
0803124c14
@ -27,7 +27,9 @@ def login_required(f):
|
||||
|
||||
|
||||
def append_to_log(log_line, user):
|
||||
tmp=""
|
||||
log_file=os.path.join(DOSSIER_PERSO, user, "log.txt")
|
||||
if os.path.exists(log_file):
|
||||
logs=open(log_file, "r")
|
||||
tmp=logs.read()
|
||||
logs.close()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user