mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 00:13:45 +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:
parent
7cc87388f9
commit
9e0ab9df33
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue