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:
Travis Abendshien
2024-04-29 12:01:04 -07:00
committed by GitHub

View File

@@ -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]]