aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-24 16:59:05 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commit0018c7e23596e63977651d512f25940e70d376ef (patch)
tree0f80833812aebecae5dfc2b9289ad5d3fd6c0154 /gn3
parentc543892f18d6a3d3027e1946ef488951ae5ed16e (diff)
downloadgenenetwork3-0018c7e23596e63977651d512f25940e70d376ef.tar.gz
Rename "limit" query paramater to "per-page".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-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