Remove unused variable and resolve styling issues
This commit is contained in:
parent
d3ff2419aa
commit
059330c188
@ -68,13 +68,12 @@ def requires_auth(f):
|
|||||||
@requires_auth
|
@requires_auth
|
||||||
def home_page():
|
def home_page():
|
||||||
magneticod_db = get_magneticod_db()
|
magneticod_db = get_magneticod_db()
|
||||||
context = {}
|
|
||||||
|
|
||||||
with magneticod_db:
|
with magneticod_db:
|
||||||
cur = magneticod_db.execute("SELECT count() FROM torrents ;")
|
cur = magneticod_db.execute("SELECT count() FROM torrents ;")
|
||||||
n_torrents = cur.fetchone()[0]
|
n_torrents = cur.fetchone()[0]
|
||||||
|
|
||||||
return flask.render_template("homepage.html",n_torrents=n_torrents)
|
return flask.render_template("homepage.html", n_torrents=n_torrents)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/torrents/")
|
@app.route("/torrents/")
|
||||||
|
Loading…
Reference in New Issue
Block a user