make more consistent

This commit is contained in:
Matthias 2022-05-30 20:12:22 +02:00
parent 6f498d6292
commit 598e60d766
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -80,16 +80,17 @@ def isInvenTreeUpToDate():
def inventreeApiVersion():
"""Returns current API version of InvenTree."""
return INVENTREE_API_VERSION
def inventreeDjangoVersion():
"""Return the version of Django library."""
"""Returns the version of Django library."""
return django.get_version()
def inventreeCommitHash():
""" Returns the git commit hash for the running codebase."""
"""Returns the git commit hash for the running codebase."""
# First look in the environment variables, i.e. if running in docker
commit_hash = os.environ.get('INVENTREE_COMMIT_HASH', '')