Merge pull request #97 from SchrodingersCat00/priceformat

improved formatting of prices
This commit is contained in:
redfast00 2019-02-17 09:35:20 +01:00 committed by GitHub
commit 94a8e2e12c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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')