Add toolinfo.json

This is so WADE will appear in the Tools Directory.
This commit is contained in:
Edward Betts 2019-12-10 15:37:20 +00:00
parent 61d913d54e
commit ae9cb514ca

13
app.py
View file

@ -556,6 +556,19 @@ def find_more_page(property_id, item_id):
pid, qid = f'P{property_id}', f'Q{item_id}'
return redirect(url_for('browse_page', **{pid: qid}))
@app.route('/toolinfo.json')
def tool_info():
info = {
'name': 'wade',
'title': 'Wikidata Art Depiction Tool',
'description': 'Add depicts statements to works of art.',
'url': 'https://art.wikidata.link/',
'keywords': 'art, depicts, paintings, depiction',
'author': 'Edward Betts',
'repository': 'https://github.com/edwardbetts/depicts.git',
}
return jsonify(info)
def get_facets(params):
properties = [pid for pid in find_more_props.keys()
if pid not in request.args]