From b3667fdeedb82f2eeb8886b58d1e3b39e7232b64 Mon Sep 17 00:00:00 2001 From: Artyom Date: Wed, 18 Jul 2018 03:14:54 +0300 Subject: [PATCH] middlename as '-' --- onelya_sdk/aeroexpress/reservation/requests.py | 2 +- onelya_sdk/railway/reservation/requests.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/onelya_sdk/aeroexpress/reservation/requests.py b/onelya_sdk/aeroexpress/reservation/requests.py index 8e5ac1a..389030d 100644 --- a/onelya_sdk/aeroexpress/reservation/requests.py +++ b/onelya_sdk/aeroexpress/reservation/requests.py @@ -21,7 +21,7 @@ def __init__(self, document_number: str, document_type: DocumentType, first_name self.last_name = last_name self.sex = sex self.index = index - self.middle_name = middle_name + self.middle_name = middle_name if middle_name is not None else '-' self.document_valid_till = document_valid_till self.citizenship_code = citizenship_code self.birth_place = birth_place diff --git a/onelya_sdk/railway/reservation/requests.py b/onelya_sdk/railway/reservation/requests.py index 2e39f73..fc102e4 100644 --- a/onelya_sdk/railway/reservation/requests.py +++ b/onelya_sdk/railway/reservation/requests.py @@ -46,7 +46,7 @@ def __init__(self, document_number: str, document_type: DocumentType, first_name self.last_name = last_name self.sex = sex self.index = index - self.middle_name = middle_name + self.middle_name = middle_name if middle_name is not None else '-' self.document_valid_till = document_valid_till self.citizenship_code = citizenship_code self.birth_place = birth_place diff --git a/setup.py b/setup.py index e0364a3..7998ff7 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '1.3.1' +__version__ = '1.3.2' setup( version=__version__,