aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r--python/fatcat_web/routes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 8583d255..58f4b7e0 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -707,6 +707,8 @@ def generic_search():
def release_search():
query = request.args.get('q')
+ if not query:
+ query = '*'
fulltext_only = bool(request.args.get('fulltext_only'))
issnl = request.args.get('container_issnl')
@@ -731,6 +733,8 @@ def release_search():
def container_search():
query = request.args.get('q')
+ if not query:
+ query = '*'
offset = request.args.get('offset', '0')
offset = max(0, int(offset)) if offset.isnumeric() else 0