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
commit 0c9dd7f43b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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