Skip to content

Commit

Permalink
Pleasing pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed May 12, 2021
1 parent b6d3edf commit c5b7da7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hall_of_fame/hof_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def get_db():
# "g" is a per-request generic context. It is needed to retrieve the connection in "close_connection" below
db = getattr(g, '_database', None)
if db is None:
# pylint: disable=assigning-non-slot
db = g._database = sqlite3.connect(DB_FILEPATH, detect_types=sqlite3.PARSE_DECLTYPES | sqlite3.PARSE_COLNAMES)
db.isolation_level = None # autocommit mode
db.row_factory = sqlite3.Row
Expand Down

0 comments on commit c5b7da7

Please sign in to comment.