postgres fix
This commit is contained in:
parent
9dcaf125b0
commit
a6e0a18a06
2 changed files with 13 additions and 15 deletions
3
crud.py
3
crud.py
|
|
@ -280,8 +280,9 @@ async def set_config_nwc(key: str, value: str):
|
|||
|
||||
await db.execute(
|
||||
"""
|
||||
INSERT OR REPLACE INTO nwcprovider.config (key, value)
|
||||
INSERT INTO nwcprovider.config (key, value)
|
||||
VALUES (:key, :value)
|
||||
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
|
||||
""",
|
||||
{"key": key, "value": value},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue