mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add a function to return a formatted version
Replaces the various repeated format strings throughout the code.
This commit is contained in:
@@ -34,3 +34,11 @@ POSTGIS_REQUIRED_VERSION = (2, 2)
|
||||
# cmake/tool-installed.tmpl is used to build the binary 'nominatim'. Inside
|
||||
# there is a call to set the variable value below.
|
||||
GIT_COMMIT_HASH = None
|
||||
|
||||
|
||||
# pylint: disable=consider-using-f-string
|
||||
def version_str():
|
||||
"""
|
||||
Return a human-readable string of the version.
|
||||
"""
|
||||
return '{}.{}.{}-{}'.format(*NOMINATIM_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user