mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make more consistent
This commit is contained in:
parent
6f498d6292
commit
598e60d766
@ -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', '')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user