Skip to content
Snippets Groups Projects
Commit 2ec001f6 authored by morkolai's avatar morkolai
Browse files

#52 Linting

parent b0aa994d
No related branches found
No related tags found
1 merge request!27#52 Automatisk oppdatering av kodebok basert på tid
Pipeline #75001 failed
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment