Properly use the JSONEncoder
parent
e0daf537d4
commit
7622be7956
|
@ -0,0 +1,2 @@
|
||||||
|
[report]
|
||||||
|
show_missing = True
|
|
@ -67,7 +67,7 @@ class WarningList():
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
return json.dumps(self.to_dict(), cls=EncodeWarningList)
|
return json.dumps(self, cls=EncodeWarningList)
|
||||||
|
|
||||||
def _fast_search(self, value):
|
def _fast_search(self, value):
|
||||||
return value in self.list
|
return value in self.list
|
||||||
|
|
Loading…
Reference in New Issue