mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Fix tests and pep8.
This commit is contained in:
1 parent
4790b9c071
commit
c183e5016c
2 files changed
+12
-5
No files matched your search
+8
-4
@@ -116,19 +116,23 @@ class Config(SQL):
|
||||
|
||||
if int(release) < 3:
|
||||
self.execute(
|
||||
f"INSERT OR IGNORE INTO data VALUES ('last_study', '')"
|
||||
"INSERT OR IGNORE INTO data "+
|
||||
"VALUES ('last_study', '')"
|
||||
)
|
||||
self.execute(
|
||||
f"INSERT OR IGNORE INTO data VALUES ('close_correctly', 'True')"
|
||||
"INSERT OR IGNORE INTO data " +
|
||||
"VALUES ('close_correctly', 'True')"
|
||||
)
|
||||
|
||||
if int(release) < 4:
|
||||
self.execute(
|
||||
f"INSERT OR IGNORE INTO data VALUES ('last_solver_name', '')"
|
||||
"INSERT OR IGNORE INTO data " +
|
||||
"VALUES ('last_solver_name', '')"
|
||||
)
|
||||
|
||||
self.execute(
|
||||
f"UPDATE info SET value='{self._version}' WHERE key='version'"
|
||||
f"UPDATE info SET value='{self._version}' " +
|
||||
"WHERE key='version'"
|
||||
)
|
||||
|
||||
self.commit()
|
||||
|
||||
Reference in new issue
Block a user