From 059330c18837d1d4212bd29221fb1d235a3d350a Mon Sep 17 00:00:00 2001 From: g_goessel Date: Thu, 13 Apr 2017 22:07:18 +0200 Subject: [PATCH] Remove unused variable and resolve styling issues --- magneticow/magneticow/magneticow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/magneticow/magneticow/magneticow.py b/magneticow/magneticow/magneticow.py index 169650c..9a25487 100644 --- a/magneticow/magneticow/magneticow.py +++ b/magneticow/magneticow/magneticow.py @@ -68,13 +68,12 @@ def requires_auth(f): @requires_auth def home_page(): magneticod_db = get_magneticod_db() - context = {} with magneticod_db: cur = magneticod_db.execute("SELECT count() FROM torrents ;") 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/")