1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
This commit is contained in:
jeremystretch
2022-11-15 15:30:39 -05:00
parent 0bcc59a1e9
commit 87fd09ca8b
4 changed files with 25 additions and 14 deletions

View File

@@ -171,6 +171,14 @@ def meters_to_feet(n):
return float(n) * 3.28084
@register.filter()
def kg_to_pounds(n):
"""
Convert a weight from kilograms to pounds.
"""
return float(n) * 2.204623
@register.filter("startswith")
def startswith(text: str, starts: str) -> bool:
"""