mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-10 16:08:52 -06:00
fix characters API endpoint, add Promise to PRELOAD_CHARACTER actions, copy Season component list group formatting to Characters (need to filter down allowed Characters)
This commit is contained in:
@@ -97,7 +97,10 @@ def api_quote_neighbors():
|
||||
|
||||
@current_app.route('/api/characters/')
|
||||
def api_character_list():
|
||||
return jsonify(list(character_data.keys()))
|
||||
_data = copy.deepcopy(character_data)
|
||||
for key in _data.keys():
|
||||
del _data[key]['quotes']
|
||||
return jsonify(_data)
|
||||
|
||||
|
||||
@current_app.route('/api/character/<character>/')
|
||||
|
||||
Reference in New Issue
Block a user