Skip to content

Commit 19a47e1

Browse files
committed
继续修复构造List对象时从jsonRes中取的key名错误问题。
1 parent 149ebd1 commit 19a47e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def build_list_construction(t, f, n):
8686
else:
8787
code = code.replace('%s' % ('Child' * total), '%s' % ('Item' * total))
8888
code = code[code.find(';') + 1:]
89-
code = code.replace('%s){' % n, 'jsonRes[\'%s\']){' % n).replace('${loop}\n', '')
89+
code = code.replace('%s){' % n, 'jsonRes[\'%s\']){' % n).replace('${loop}\n', '').replace('jsonRes[\'%s\']){' % n, 'jsonRes[\'%s\']){' % f)
9090

9191
return list_loop + code
9292

0 commit comments

Comments
 (0)