mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-27 05:50:05 +00:00
11 lines
237 B
Python
11 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"
|