ensure generated schema from gen_emu_config contains name and description

This commit is contained in:
a 2024-08-17 18:29:38 +03:00
parent 7e768c73fe
commit 41570b0fa5

View File

@ -32,9 +32,9 @@ def generate_stats_achievements(
out['hidden'] = 0 out['hidden'] = 0
for x in ach['display']: for x in ach['display']:
value = ach['display'][x] value = ach['display'][x]
if x == 'name': if f'{x}'.lower() == 'name':
x = 'displayName' x = 'displayName'
elif x == 'desc': elif f'{x}'.lower() == 'desc':
x = 'description' x = 'description'
elif x == 'Hidden' or f'{x}'.lower() == 'hidden': elif x == 'Hidden' or f'{x}'.lower() == 'hidden':
x = 'hidden' x = 'hidden'