Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def pagination(page):
perpage = 5
entries = Entry.get_page(page)
total = Entry.get_length()
return render_template('index.html', **locals())
def show_entries():
page = 1
perpage = 5
entries = Entry.get_page(page)
total = Entry.get_length()
return render_template('index.html', **locals())