deconnexion.py: on active l'url de reconnexion
En cas de problème, fallback sur un délai de 24h.
This commit is contained in:
parent
3cab7f9980
commit
2d93ec377f
2 changed files with 10 additions and 1 deletions
|
@ -210,7 +210,12 @@ for elupload, eltype, elid in uploadeurs:
|
|||
# On sanctionne
|
||||
###############
|
||||
debut = int(time())
|
||||
fin = debut + 24*3600
|
||||
# On ne reconnecte pas auto si url dispo
|
||||
if reco_url:
|
||||
fin = "-"
|
||||
else:
|
||||
fin = debut + 24*3600
|
||||
# Pour l'analyse
|
||||
orig = strftime("%Y/%m/%d %H:%M:%S", localtime(debut - 86400))
|
||||
end = strftime("%Y/%m/%d %H:%M:%S", localtime(debut))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue