aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/metadata.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api/metadata.py')
-rw-r--r--gn3/api/metadata.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index ff44992..1bd9d5f 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -219,7 +219,7 @@ def search_datasets(term):
try:
args = request.args
page = args.get("page", 0)
- page_size = args.get("limit", 10)
+ page_size = args.get("per-page", 10)
sparql = SPARQLWrapper(current_app.config.get("SPARQL_ENDPOINT"))
sparql.setQuery(Template("""
$prefix
@@ -353,7 +353,7 @@ def search_publications(term):
try:
args = request.args
page = args.get("page", 0)
- page_size = args.get("limit", 10)
+ page_size = args.get("per-page", 10)
sparql = SPARQLWrapper(current_app.config.get("SPARQL_ENDPOINT"))
sparql.setQuery(Template("""
$prefix
@@ -663,7 +663,7 @@ def get_gn_genewiki_entries(symbol):
try:
args = request.args
page = args.get("page", 0)
- page_size = args.get("limit", 10)
+ page_size = args.get("per-page", 10)
sparql = SPARQLWrapper(current_app.config.get("SPARQL_ENDPOINT"))
sparql.setQuery(Template("""
$prefix
@@ -758,7 +758,7 @@ def get_ncbi_genewiki_entries(symbol):
try:
args = request.args
page = args.get("page", 0)
- page_size = args.get("limit", 10)
+ page_size = args.get("per-page", 10)
sparql = SPARQLWrapper(current_app.config.get("SPARQL_ENDPOINT"))
sparql.setQuery(Template("""
$prefix