Merge pull request #95 from Loran425/patch/library-loading
Patch Bug that prevents loading ts_library.json fields ids as integers
This commit is contained in:
commit
0c9dd7f43b
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ class Library:
|
|||
fields = []
|
||||
if 'fields' in entry:
|
||||
# Cast JSON str keys to ints
|
||||
for f in fields:
|
||||
for f in entry['fields']:
|
||||
f[int(list(f.keys())[0])
|
||||
] = f[list(f.keys())[0]]
|
||||
del f[list(f.keys())[0]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue