Skip to content

Commit

Permalink
Merge branch 'a145319666913685_test_mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Jul 11, 2016
2 parents 9facf7d + e3a6f9c commit 67dde9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openprocurement/contracting/api/databridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def get_tender_contracts(self):

contract['tender_id'] = tender['id']
contract['procuringEntity'] = tender['procuringEntity']
if tender.get('mode'):
contract['mode'] = tender['mode']

if not contract.get('items'):
logger.info('Copying contract {} items'.format(contract['id']), extra=journal_context({"MESSAGE_ID": DATABRIDGE_COPY_CONTRACT_ITEMS},
Expand Down Expand Up @@ -234,8 +236,6 @@ def prepare_contract_data(self):
logger.debug("Got extra info for tender {}".format(contract['tender_id']),
extra=journal_context({"MESSAGE_ID": DATABRIDGE_GOT_EXTRA_INFO}, {"TENDER_ID": contract['tender_id']}))
data = tender_data.data
if data.get('mode'):
contract['mode'] = data['mode']
contract['owner'] = data['owner']
contract['tender_token'] = data['tender_token']
self.contracts_put_queue.put(contract)
Expand Down

0 comments on commit 67dde9f

Please sign in to comment.