2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

make more consistent

This commit is contained in:
Matthias
2022-05-30 20:12:22 +02:00
parent 6f498d6292
commit 598e60d766

View File

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