aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/api.py
diff options
context:
space:
mode:
authorPjotr Prins2020-10-28 10:01:31 +0000
committerPjotr Prins2020-10-28 10:01:31 +0000
commite8e150c85414f67e9f15dfdcd04bcbe2369ac44f (patch)
tree77ff7337c813f857222d7f73e36d95d6b63f96d0 /bh20simplewebuploader/api.py
parent38ee6ad0cfa86b40566c8d45a92400b38351a717 (diff)
downloadbh20-seq-resource-e8e150c85414f67e9f15dfdcd04bcbe2369ac44f.tar.gz
bh20-seq-resource-e8e150c85414f67e9f15dfdcd04bcbe2369ac44f.tar.lz
bh20-seq-resource-e8e150c85414f67e9f15dfdcd04bcbe2369ac44f.zip
Create permalink and some output
Diffstat (limited to 'bh20simplewebuploader/api.py')
-rw-r--r--bh20simplewebuploader/api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bh20simplewebuploader/api.py b/bh20simplewebuploader/api.py
index 2a5529f..b1b505f 100644
--- a/bh20simplewebuploader/api.py
+++ b/bh20simplewebuploader/api.py
@@ -5,7 +5,7 @@ import requests
import sys
from flask import Flask, request, redirect, send_file, send_from_directory, render_template, jsonify
-from bh20simplewebuploader.main import app, baseURL
+from bh20simplewebuploader.main import app, sparqlURL
# Helper functions
@@ -31,7 +31,7 @@ def fetch_sample_metadata(id):
} limit 5
""" % id
payload = {'query': query, 'format': 'json'}
- r = requests.get(baseURL, params=payload)
+ r = requests.get(sparqlURL, params=payload)
return r.json()['results']['bindings']
# Main API routes
@@ -83,7 +83,7 @@ def search():
} limit 100
""" % s
payload = {'query': query, 'format': 'json'}
- r = requests.get(baseURL, params=payload)
+ r = requests.get(sparqlURL, params=payload)
result = r.json()['results']['bindings']
# metadata = file.name(seq)+"/metadata.yaml"
print(result)