mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Cleanup for #9654
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user