Merge pull request #97 from SchrodingersCat00/priceformat
improved formatting of prices
This commit is contained in:
commit
94a8e2e12c
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue