Commit d5e88edc authored by Daniel STAN's avatar Daniel STAN

deconnexion.py: typos

parent a5797b15
......@@ -20,7 +20,7 @@ from time import *
from gestion.config import NETs, plage_ens, prefix
from gestion.config import upload as config_upload
import gestion.config.mails.upload as mails_upload
import gestion.config.mails.upload as upload
from gestion.ldap_crans import crans_ldap
from gestion.ldap_crans import MachineFixe
......@@ -227,7 +227,7 @@ for elupload, eltype, elid in uploadeurs:
# Vérification du nombre de déconnexions
#########################################
nb_decos = len([ x for x in proprio.blacklist() if int(x.split('$')[0]) > time()-30*24*3600 and x.split('$')[2] == 'autodisc_upload' ])
if nb_decos >= config.upload.max_decos:
if nb_decos >= upload.max_decos:
# Génération du fichier postscript
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment