improved formatting of prices

This commit is contained in:
Kobe Mertens 2019-02-16 21:03:56 +01:00
parent 09c65e2bcc
commit c32f2ac387

View file

@ -8,7 +8,7 @@ __author__ = 'feliciaan'
@app.template_filter('euro')
def euro(value):
result = '' + str(value/100)
result = ' {:.2f}'.format(round(value/100,2))
return result
@app.template_filter('countdown')