Skip to content

Commit

Permalink
Fixed migration from13to14
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Feb 3, 2015
1 parent 35404bf commit e4fd85f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/openprocurement/api/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def from13to14(db):
results = db.view('tenders/all', include_docs=True)
for i in results:
doc = i.doc
changed = False
if not doc.get('title'):
doc['title'] = doc["items"][0]['description']
changed = True
Expand Down

0 comments on commit e4fd85f

Please sign in to comment.