Jelajahi Sumber

mxg:in postgresql environment jsonb be parsed str

mengxiangge 5 tahun lalu
induk
melakukan
97afd392bc
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/system_relation/system_block.py

+ 2 - 2
src/system_relation/system_block.py

@@ -70,10 +70,10 @@ def dic2obj(d):
 		except Exception as e:
 			pass
 		if isinstance(j0, dict):
-			setattr(top, i, dic2obj2(j0))
+			setattr(top, i, dic2obj(j0))
 		elif isinstance(j0, seqs):
 			setattr(top, i,
-					type(j0)(dic2obj2(sj) if isinstance(sj, dict) else sj for sj in j0))
+					type(j0)(dic2obj(sj) if isinstance(sj, dict) else sj for sj in j0))
 		else:
 			setattr(top, i, j0)
 	return top