Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/a234097332408087_fix_items_copy'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Dec 22, 2016
2 parents 9ab7459 + 62a1d0c commit 75df467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openprocurement/contracting/api/databridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def _get_tender_contracts(self):
contract['items'] = award['items']
else:
logger.debug('Copying items matching related lot {}'.format(award['lotID']))
contract['items'] = [item for item in tender['items'] if item['relatedLot'] == award['lotID']]
contract['items'] = [item for item in tender['items'] if item.get('relatedLot') == award['lotID']]
else:
logger.warn('Not found related award for contact {} of tender {}'.format(contract['id'], tender['id']),
extra=journal_context({"MESSAGE_ID": DATABRIDGE_EXCEPTION}, params={"CONTRACT_ID": contract['id'], "TENDER_ID": tender['id']}))
Expand Down

0 comments on commit 75df467

Please sign in to comment.