From 611f0c5706f7b40ec4a6e0ef71f837c8a79619cb Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Wed, 30 Oct 2019 03:16:14 +0100 Subject: [PATCH] search: allow admins to ignore the max page limit (#589) --- nyaa/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/search.py b/nyaa/search.py index 3756eb5..a1700c7 100644 --- a/nyaa/search.py +++ b/nyaa/search.py @@ -379,7 +379,7 @@ def search_db(term='', user=None, sort='id', order='desc', category='0_0', same_user = logged_in_user.id == user # Logged in users should always be able to view their full listing. - if same_user: + if same_user or admin: MAX_PAGES = 0 if MAX_PAGES and page > MAX_PAGES: