feat: add authenticated engine processing boundary
This commit is contained in:
+2
-3
@@ -7,7 +7,7 @@
|
||||
import json
|
||||
import uuid
|
||||
|
||||
from db.connection import execute, query, transaction
|
||||
from db.connection import execute, query
|
||||
|
||||
|
||||
def _json_value(value, default):
|
||||
@@ -123,5 +123,4 @@ def list_dossier_documents(dossier_id):
|
||||
|
||||
def clear_batch_dossiers(batch_id):
|
||||
"""Удалить все досье batch; таблицы с ON DELETE CASCADE очистятся вместе с ними."""
|
||||
with transaction():
|
||||
return execute("DELETE FROM contract_dossiers WHERE batch_id = %s", (batch_id,))
|
||||
return execute("DELETE FROM contract_dossiers WHERE batch_id = %s", (batch_id,))
|
||||
Reference in New Issue
Block a user