Skip to content

Commit

Permalink
Merge pull request #428 from bdmbdsm/remove_deprecated_behaviour
Browse files Browse the repository at this point in the history
Remove deprecated iteration on parsed_version
  • Loading branch information
vmotso committed Feb 1, 2019
2 parents 6e06871 + 41bec3a commit 8b58efe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/openprocurement/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

PKG = get_distribution(__package__)
LOGGER = getLogger(PKG.project_name)
_ver_nums = PKG.version.split('.') # version numbers tuple
VERSION = '{}.{}'.format(
int(PKG.parsed_version[0]),
int(PKG.parsed_version[1]) if PKG.parsed_version[1].isdigit() else 0
int(_ver_nums[0]),
int(_ver_nums[1]) if _ver_nums[1].isdigit() else 0
)
ROUTE_PREFIX = '/api/{}'.format(VERSION)
SESSION = Session()
Expand Down

0 comments on commit 8b58efe

Please sign in to comment.