Browse Source

Fix next_page heuristic

master
Dylan Baker 3 years ago
parent
commit
59bb48b2ef
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      web/server.rb

+ 1
- 1
web/server.rb View File

@@ -88,7 +88,7 @@ class VLVSearch < Sinatra::Base
88 88
       current_page = params[:page].to_i
89 89
       previous_page = current_page > 1 ? current_page - 1 : nil
90 90
 
91
-      if params[:current_count] == params[:full_count]
91
+      if (params[:current_count] + ((current_page - 1) * RESULTS_PER_PAGE)) == params[:full_count]
92 92
         next_page = nil
93 93
       else
94 94
         next_page = current_page + 1

Loading…
Cancel
Save