remove js, finish index page

This commit is contained in:
lza_menace 2020-10-17 15:01:38 -07:00
parent a6d0405737
commit 13351e73bc
15 changed files with 466 additions and 3507 deletions

View file

@ -34,11 +34,12 @@ def index():
nodes = Node.select().where(Node.available==True).order_by(
Node.datetime_entered.desc()
).paginate(page, itp)
total_pages = Node.select().count() / itp
)
paginated = nodes.paginate(page, itp)
total_pages = nodes.count() / itp
return render_template(
"index.html",
nodes=nodes,
nodes=paginated,
page=page,
total_pages=total_pages,
form=form
@ -119,7 +120,6 @@ def about():
@app.errorhandler(404)
def not_found(error):
flash("nothing there, brah")
return redirect("/")
if __name__ == "__main__":