Changed the way of concatinating strings in app.py

This commit is contained in:
kindtanton 2019-12-06 12:48:37 +01:00
parent ee627b7dfa
commit 40e4bf4fba

View file

@ -156,7 +156,7 @@ def add_template_filters(app: Flask) -> None:
minutes, seconds = divmod(remainder, 60)
time = "%02d:%02d:%02d" % (hours, minutes, seconds)
if show_text:
return time + " left"
return f"{time} left"
return time
@app.template_filter("year")