add docstrings

This commit is contained in:
Oliver Walters 2019-05-04 11:28:23 +10:00
parent 28600ebc79
commit 4fe3b9d779

View File

@ -10,19 +10,23 @@ register = template.Library()
@register.simple_tag() @register.simple_tag()
def multiply(x, y, *args, **kwargs): def multiply(x, y, *args, **kwargs):
""" Multiply two numbers together """
return x * y return x * y
@register.simple_tag() @register.simple_tag()
def inventree_version(*args, **kwargs): def inventree_version(*args, **kwargs):
""" Return InvenTree version string """
return version.inventreeVersion() return version.inventreeVersion()
@register.simple_tag() @register.simple_tag()
def inventree_commit(*args, **kwargs): def inventree_commit(*args, **kwargs):
""" Return InvenTree git commit hash string """
return version.inventreeCommitHash() return version.inventreeCommitHash()
@register.simple_tag() @register.simple_tag()
def inventree_github(*args, **kwargs): def inventree_github(*args, **kwargs):
""" Return URL for InvenTree github site """
return "https://github.com/InvenTree" return "https://github.com/InvenTree"