fix bug in pagination, clean up the approach a bit more

This commit is contained in:
Andrej Karpathy
2021-12-18 23:25:45 -08:00
parent c3cb157c9f
commit 759f7e73e6
4 changed files with 19 additions and 44 deletions
-2
View File
@@ -294,8 +294,6 @@ def main():
context['gvars']['search_query'] = opt_q
context['gvars']['svm_c'] = str(C)
context['gvars']['page_number'] = str(page_number)
context['gvars']['prev_page_number'] = str(page_number - 1)
context['gvars']['next_page_number'] = str(page_number + 1)
return render_template('index.html', **context)
@app.route('/inspect', methods=['GET'])