mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-14 15:49:04 +00:00
Audio tags in search page and svg thumbnail generation
This commit is contained in:
17
storage.py
17
storage.py
@@ -278,14 +278,17 @@ class LocalStorage:
|
||||
|
||||
self.dir_cache_outdated = True
|
||||
|
||||
conn = sqlite3.connect(self.db_path)
|
||||
c = conn.cursor()
|
||||
c.execute("UPDATE Directory SET name=?, path=?, enabled=? WHERE id=?",
|
||||
(directory.name, directory.path, directory.enabled, directory.id))
|
||||
try:
|
||||
conn = sqlite3.connect(self.db_path)
|
||||
c = conn.cursor()
|
||||
c.execute("UPDATE Directory SET name=?, path=?, enabled=? WHERE id=?",
|
||||
(directory.name, directory.path, directory.enabled, directory.id))
|
||||
|
||||
c.close()
|
||||
conn.commit()
|
||||
conn.close()
|
||||
c.close()
|
||||
conn.commit()
|
||||
conn.close()
|
||||
except sqlite3.IntegrityError:
|
||||
raise DuplicateDirectoryException("Duplicate directory: " + directory.path)
|
||||
|
||||
def save_option(self, option: Option):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user