1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

API can now properly show ranges

This commit is contained in:
Krateng
2019-05-08 17:42:56 +02:00
parent 5c076dfe25
commit 341af94fa9
3 changed files with 18 additions and 0 deletions

7
monkey.py Normal file
View File

@@ -0,0 +1,7 @@
from simplejson import JSONEncoder
def newdefault(self,object):
return getattr(object.__class__,"__json__", olddefault)(object)
olddefault = JSONEncoder.default
JSONEncoder.default = newdefault