mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-08-19 15:27:46 -04:00
remove js, finish index page
This commit is contained in:
parent
a6d0405737
commit
13351e73bc
15 changed files with 466 additions and 3507 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue