From ae9cb514ca7b4ea723813c5122807808c2ebac14 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 10 Dec 2019 15:37:20 +0000 Subject: [PATCH] Add toolinfo.json This is so WADE will appear in the Tools Directory. --- app.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app.py b/app.py index b40655a..2cc174a 100755 --- a/app.py +++ b/app.py @@ -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]