diff options
author | Pjotr Prins | 2020-07-19 09:11:41 +0100 |
---|---|---|
committer | Pjotr Prins | 2020-07-19 09:11:41 +0100 |
commit | 7b2d388dbed11384c6a388a5437cca0b8f2914fd (patch) | |
tree | f2707c6811948b9c6adc63534ff456266508c109 /bh20simplewebuploader/main.py | |
parent | 0e4cb2c14b62ed4f39271c6006a99cea954fc688 (diff) | |
download | bh20-seq-resource-7b2d388dbed11384c6a388a5437cca0b8f2914fd.tar.gz bh20-seq-resource-7b2d388dbed11384c6a388a5437cca0b8f2914fd.tar.lz bh20-seq-resource-7b2d388dbed11384c6a388a5437cca0b8f2914fd.zip |
Wiring up export function
Diffstat (limited to 'bh20simplewebuploader/main.py')
-rw-r--r-- | bh20simplewebuploader/main.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 2c360e1..b88055f 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -630,6 +630,10 @@ def validated_page(): validated_table(output, validated) return render_template('validated.html', table=Markup(output.getvalue()), menu='STATUS') +@app.route('/export') +def export_page(): + return render_template('export.html',menu='EXPORT') + @app.route('/demo') def demo_page(): return render_template('demo.html',menu='DEMO',load_map=True) @@ -685,6 +689,11 @@ def getCountDB(): # print(result, file=sys.stderr) return jsonify({'sequences': int(result[0]["num"]["value"])}) +# Execute a 'global search' +@app.route('/api/search', methods=['GET']) +def search(): + return jsonify(["TESTME"]) + @app.route('/api/getAllaccessions', methods=['GET']) def getAllaccessions(): query="""SELECT DISTINCT ?fasta ?value WHERE {?fasta ?x[ <http://edamontology.org/data_2091> ?value ]}""" |