Changed the way of concatinating strings in app.py
This commit is contained in:
parent
ee627b7dfa
commit
40e4bf4fba
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def add_template_filters(app: Flask) -> None:
|
||||||
minutes, seconds = divmod(remainder, 60)
|
minutes, seconds = divmod(remainder, 60)
|
||||||
time = "%02d:%02d:%02d" % (hours, minutes, seconds)
|
time = "%02d:%02d:%02d" % (hours, minutes, seconds)
|
||||||
if show_text:
|
if show_text:
|
||||||
return time + " left"
|
return f"{time} left"
|
||||||
return time
|
return time
|
||||||
|
|
||||||
@app.template_filter("year")
|
@app.template_filter("year")
|
||||||
|
|
Loading…
Reference in a new issue