Patch Bug that prevents loading ts_library.json fields ids as integers

This commit is contained in:
Andrew.Arneson
2024-04-29 12:55:30 -06:00
parent 93177dd696
commit 885b2b0358

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