remove some unused filters

This commit is contained in:
yagich committed 2026-05-29 05:55:11 +03:00
1 parent af5e838232
commit 4d2f87baf5
1 file changed
-7
-7
View File
@@ -367,13 +367,6 @@ def create_app():
def cachebust(subject):
return f'{subject}?v={str(int(time.time()))}'
@app.template_filter('theme_name')
def get_theme_name(subject: str):
if subject == 'style':
return 'Default'
return f'{subject.removeprefix('theme-').replace('-', ' ').capitalize()} (beta)'
@app.template_filter('fromjson')
def fromjson(subject: str):
return json.loads(subject)