Skip to content

Commit

Permalink
missing migration part
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Oct 31, 2016
1 parent cb25e8c commit 6cd75be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openprocurement/contracting/api/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def from1to2(registry):
doc['value'] = rel_award['value']

docs.append(doc)

if len(docs) >= 2 ** 7:
registry.db.update(docs)
docs = []
if docs:
registry.db.update(docs)

Expand Down

0 comments on commit 6cd75be

Please sign in to comment.