From 2ec001f642795c252bf6c1d5107972d12c01c4a8 Mon Sep 17 00:00:00 2001 From: morkolai <nikolai-mork@live.no> Date: Tue, 17 Mar 2020 21:07:55 +0100 Subject: [PATCH] #52 Linting --- soitool/database.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/soitool/database.py b/soitool/database.py index c6c3ed8..c96f56e 100644 --- a/soitool/database.py +++ b/soitool/database.py @@ -39,6 +39,14 @@ class Database: """ def __init__(self, auto_update=True): + """ + Constructor. + + Parameters + ---------- + auto_update: bool + Automatically update database on time or not + """ db_exists = os.path.exists(DBPATH) if db_exists: @@ -60,7 +68,9 @@ class Database: self.timer.setInterval( self.seconds_to_next_update(SECONDS_IN_24H * 1000) ) - self.timer.timeout.connect(lambda: self.update_codebook_auto()) + self.timer.timeout.connect( + lambda: self.update_codebook_auto() # pylint: disable=W0108 + ) self.timer.start() self.conn.row_factory = sqlite3.Row # Enables row['columnName'] -- GitLab