8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-29 16:12:26 +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 6bc90d8827
commit b8288bfc57

View file

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