fix ReadableInteger filter

This commit is contained in:
Andrew Croce 2018-08-20 12:12:01 -04:00
parent 6b675afab9
commit 27fcaee0cd

View File

@ -1,3 +1,5 @@
import re
def iconSvg(name): def iconSvg(name):
with open('static/icons/'+name+'.svg') as contents: with open('static/icons/'+name+'.svg') as contents:
return contents.read() return contents.read()
@ -18,7 +20,7 @@ def usPhone(number):
def readableInteger(value): def readableInteger(value):
try: try:
numberValue = float(value) numberValue = int(value)
except ValueError: except ValueError:
numberValue = 0 numberValue = 0
return "{:,}".format(numberValue) return "{:,}".format(numberValue)