Skip to content

Commit

Permalink
search: allow admins to ignore the max page limit (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
CounterPillow authored and Arylide committed Oct 30, 2019
1 parent 7875901 commit 046ec40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nyaa/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 046ec40

Please sign in to comment.