remove some unused filters
This commit is contained in:
@@ -367,13 +367,6 @@ def create_app():
|
|||||||
def cachebust(subject):
|
def cachebust(subject):
|
||||||
return f'{subject}?v={str(int(time.time()))}'
|
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')
|
@app.template_filter('fromjson')
|
||||||
def fromjson(subject: str):
|
def fromjson(subject: str):
|
||||||
return json.loads(subject)
|
return json.loads(subject)
|
||||||
|
|||||||
Reference in New Issue
Block a user