[Oublis] On augmente le nombre d'entrées dans l'historique pour l'upload, et on corrige un bug sur ridtools
This commit is contained in:
parent
9169c80520
commit
16dedbbe62
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ def find_rid_plage(rid):
|
|||
if isinstance(plages, list):
|
||||
for begin, end in plages:
|
||||
if begin <= rid <= end:
|
||||
return tp, (begin, end)
|
||||
return tp, config.rid_primaires[tp][0]
|
||||
else:
|
||||
(begin, end) = plages
|
||||
if begin <= rid <= end:
|
||||
|
|
|
@ -88,7 +88,7 @@ def generate_ps(sanction, proprio, db):
|
|||
# transfomation en tuple (date, sanction)
|
||||
historique = [ (time.strftime('%A %d %B %Y', time.localtime(int(bl[0]))), bl[-1]) for bl in historique ]
|
||||
# On ne prend au maximum que les 5 dernières occurences
|
||||
historique = historique[-5:]
|
||||
historique = historique[-7:]
|
||||
# tranformation en ligne
|
||||
if sanction == 'upload' :
|
||||
# On donne la valeur de l'upload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue