mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2025-04-12 13:00:02 +03:00
sqlite cache: make key as primary key
This commit is contained in:
parent
8a9fe54f6d
commit
8e82a6aa48
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user