mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-06 07:19:33 +00:00
12 lines
237 B
Python
12 lines
237 B
Python
""" template filters """
|
|
from django import template
|
|
|
|
|
|
register = template.Library()
|
|
|
|
|
|
@register.filter(name="half_star")
|
|
def get_half_star(value):
|
|
"""one of those things that's weirdly hard with templates"""
|
|
return f"{value}.5"
|