8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-10-31 23:22:49 +00:00

Fix : Quand on retire un elt d'une liste, la taille de la liste diminue

Faisait crasher dans certains cas
This commit is contained in:
Maël Kervella 2017-10-07 00:42:54 +00:00
parent 7cc87388f9
commit 9e0ab9df33

View file

@ -106,7 +106,7 @@ def index(request):
'user_id': v.revision.user_id,
'version': v }
else :
to_remove.append(i)
to_remove.insert(0,i)
# Remove all tagged invalid items
for i in to_remove :
versions.object_list.pop(i)