From 6223158a58743c426b11b657966e41ba01705d55 Mon Sep 17 00:00:00 2001 From: Aleksey Stryukov Date: Thu, 11 Oct 2018 12:55:21 +0300 Subject: [PATCH 1/2] Add default NOT_REQUIRED_ADDITIONAL_CLASSIFICATION_FROM constant value --- src/openprocurement/api/constants.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openprocurement/api/constants.ini b/src/openprocurement/api/constants.ini index a719e46292..47a14db10e 100644 --- a/src/openprocurement/api/constants.ini +++ b/src/openprocurement/api/constants.ini @@ -1,2 +1,3 @@ [DEFAULT] -BUDGET_PERIOD_FROM = 2017-10-1 \ No newline at end of file +BUDGET_PERIOD_FROM = 2017-10-1 +NOT_REQUIRED_ADDITIONAL_CLASSIFICATION_FROM = 2018-04-20 \ No newline at end of file From 7d0b90b286baed3a406da5078a081aad0cd2f5f7 Mon Sep 17 00:00:00 2001 From: Aleksey Stryukov Date: Tue, 30 Oct 2018 14:51:39 +0200 Subject: [PATCH 2/2] move disable 999999-9 constant to openprocurement.api --- src/openprocurement/api/constants.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openprocurement/api/constants.py b/src/openprocurement/api/constants.py index 55a8c9c06d..0a2e6666eb 100644 --- a/src/openprocurement/api/constants.py +++ b/src/openprocurement/api/constants.py @@ -78,3 +78,6 @@ def get_constant(config, constant, section=DEFAULTSECT, parse_func=parse_date_tz CONSTANTS_CONFIG = load_constants(CONSTANTS_FILE_PATH) BUDGET_PERIOD_FROM = get_constant(CONSTANTS_CONFIG, 'BUDGET_PERIOD_FROM') +# Set non required additionalClassification for classification_id 999999-9 +NOT_REQUIRED_ADDITIONAL_CLASSIFICATION_FROM = get_constant( + CONSTANTS_CONFIG, 'NOT_REQUIRED_ADDITIONAL_CLASSIFICATION_FROM') \ No newline at end of file