доработка
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-11 14:07:01 +10:00
parent 38ec470b67
commit bf8bc173a1

View File

@@ -131,7 +131,7 @@ def update_promt(name: str, promt: str):
try: try:
with conn.cursor() as cur: with conn.cursor() as cur:
cur.execute(""" cur.execute("""
INSERT INTO config_gpt (url, name, promt) INSERT INTO config_gpt (name, promt)
VALUES ( %s, %s) VALUES ( %s, %s)
ON CONFLICT (name) DO UPDATE SET ON CONFLICT (name) DO UPDATE SET
promt = EXCLUDED.promt promt = EXCLUDED.promt