Skip to content

Commit 9565663

Browse files
committed
Set english auction config as default
* Create constants module
1 parent b660489 commit 9565663

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# -*- coding: utf-8 -*-
2+
DEFAULT_CONFIG = 'english'

openprocurement/auction/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from zope.interface import implementer
2828

2929
from openprocurement.auction.interfaces import IFeedItem
30+
from openprocurement.auction.constants import DEFAULT_CONFIG
3031

3132

3233
logger = logging.getLogger('Auction Worker')
@@ -424,7 +425,7 @@ def get_auction_worker_configuration_path(_for, view_value, config, key='api_ver
424425
def prepare_auction_worker_cmd(_for, tender_id, cmd, item,
425426
lot_id='', with_api_version=''):
426427
plugin = _for.mapper.pmt_configurator.get(item.get('procurementMethodType'))
427-
config = _for.mapper.plugins.get(plugin)
428+
config = _for.mapper.plugins.get(plugin, DEFAULT_CONFIG)
428429
params = [
429430
config['auction_worker'],
430431
cmd, tender_id,

0 commit comments

Comments
 (0)