refactor: change folder case

This commit is contained in:
Eneko Illarramendi
2019-12-17 17:04:51 +01:00
parent d1219aa85b
commit 9a21cee902
223 changed files with 0 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import json
import sqlite3
class MegaEncoder(json.JSONEncoder):
def default(self, o):
if type(o) == sqlite3.Row:
val = {}
for k in o.keys():
val[k] = o[k]
return val
return o
def megajson(o):
return json.dumps(o, cls=MegaEncoder)