improved formatting of prices
This commit is contained in:
parent
09c65e2bcc
commit
c32f2ac387
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ __author__ = 'feliciaan'
|
||||||
|
|
||||||
@app.template_filter('euro')
|
@app.template_filter('euro')
|
||||||
def euro(value):
|
def euro(value):
|
||||||
result = '€' + str(value/100)
|
result = '€ {:.2f}'.format(round(value/100,2))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@app.template_filter('countdown')
|
@app.template_filter('countdown')
|
||||||
|
|
Loading…
Reference in a new issue