Skip to content
Snippets Groups Projects
Commit ffaf148d authored by Ben Adida's avatar Ben Adida
Browse files

another small tweak to the migration script for futher efficiency

parent 63ce533f
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ class Migration(DataMigration): ...@@ -33,7 +33,7 @@ class Migration(DataMigration):
v.save() v.save()
# also, update tinyhash for all votes # also, update tinyhash for all votes
for cv in orm.CastVote.objects.all(): for cv in orm.CastVote.objects.all().iterator():
safe_hash = cv.vote_hash safe_hash = cv.vote_hash
for c in ['/', '+']: for c in ['/', '+']:
safe_hash = safe_hash.replace(c,'') safe_hash = safe_hash.replace(c,'')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment