Продолжаю тестирование

main
Лев 2025-08-27 16:43:45 +05:00
parent a76f4890ce
commit 649a5876bc
1 changed files with 8 additions and 4 deletions

View File

@ -68,8 +68,12 @@ class SimpleDB:
organ, names, date_from_str, date_to_str, ver = value
# Парсим даты
date_from = parser.parse(date_from_str)
date_to = parser.parse(date_to_str) if date_to_str else None
if date_to_str:
date_to = parser.parse(date_to_str)
respons = cursor.callproc('P_RK_SEND_JSON_LIST_FACEACC', [int(id), organ, names, date_from, date_to, ver])
print(respons)
else:
respons = cursor.callproc('P_RK_SEND_JSON_LIST_FACEACC', [int(id), organ, names, date_from, ver])
# тестого
print("Ответ от БД: ", respons)
except Error as e: