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:
@ -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', '')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user