From 0018c7e23596e63977651d512f25940e70d376ef Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 24 Oct 2023 16:59:05 +0300 Subject: Rename "limit" query paramater to "per-page". Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gn3') 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 -- cgit v1.2.3