From 913957b2dba7bf9650f0d337c9c47d0fc1d1cd4e Mon Sep 17 00:00:00 2001 From: crflynn Date: Thu, 6 Sep 2018 22:00:01 -0400 Subject: [PATCH] dont actually need db in contexts --- pypistats/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypistats/run.py b/pypistats/run.py index c4fc157..2a41dda 100644 --- a/pypistats/run.py +++ b/pypistats/run.py @@ -28,5 +28,5 @@ def before_request(): g.user = None if "user_id" in session: g.user = User.query.get(session["user_id"]) - if "db" not in g: - g.db = db + # if "db" not in g: + # g.db = db