v1.2.22: 3rd audit fixes — UniqueViolation→409, lock_check no-db→False, escName add & escape

This commit is contained in:
2026-07-31 18:20:33 +04:00
parent 06eb463088
commit 23688da90a
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ def lock_check(client_id, stand):
False — нельзя (уже есть RUNNING) → 409 Conflict"""
conn = get_conn()
if not conn:
return True # без БД — разрешаем (partial unique index недоступен)
return False # без БД — не разрешаем (partial unique index недоступен)
try:
cur = conn.cursor()
cur.execute("""