mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add docstrings
This commit is contained in:
parent
28600ebc79
commit
4fe3b9d779
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user