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:
Xevion
2020-09-17 14:19:27 -05:00
parent 46bea4af4d
commit 7ae360a576
3 changed files with 42 additions and 14 deletions

View File

@@ -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>/')