mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2026-10-22 17:12:08 +03:00
sqlite cache: make key as primary key
This commit is contained in:
1 file changed
+1
-1
@@ -25,7 +25,7 @@ class Cache:
|
||||
self.db.row_factory = lambda c, r: dict(zip([col[0] for col in c.description], r))
|
||||
|
||||
with self.db:
|
||||
self.db.execute("create table if not exists cache (key text unique, value text);")
|
||||
self.db.execute("create table if not exists cache (key text primary key, value text);")
|
||||
|
||||
def set(self, key, value) -> None:
|
||||
if self.disabled:
|
||||
|
||||
Reference in new issue
Block a user