mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Initial commit
This commit is contained in:
commit
edb3d8f57b
55 changed files with 15544 additions and 0 deletions
8
wowfunding/bin/utils.py
Normal file
8
wowfunding/bin/utils.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from flask.json import JSONEncoder
|
||||
from datetime import datetime, date
|
||||
|
||||
|
||||
def json_encoder(obj):
|
||||
if isinstance(obj, (datetime, date)):
|
||||
return obj.isoformat()
|
||||
raise TypeError ("Type %s not serializable" % type(obj))
|
Loading…
Add table
Add a link
Reference in a new issue