Refactor combined.json
This commit is contained in:
@@ -8,11 +8,11 @@ def gen_obj(bundle_id):
|
||||
icon = '/app/{0}/icon.png'.format(bundle_id)
|
||||
else:
|
||||
icon = '/static/app-template.svg'
|
||||
try:
|
||||
name = mylib.json_read_meta(bundle_id, 'de')['trackCensoredName']
|
||||
except Exception:
|
||||
name = '< App-Name >'
|
||||
return {'id': bundle_id, 'name': name, 'img': icon}
|
||||
return {
|
||||
'id': bundle_id,
|
||||
'name': mylib.app_name(bundle_id, '< App-Name >'),
|
||||
'img': icon
|
||||
}
|
||||
|
||||
|
||||
def gen_entry(obj):
|
||||
|
||||
Reference in New Issue
Block a user