From 4a720ca0ad77c8c466b827241a75b0c93b1474f1 Mon Sep 17 00:00:00 2001 From: korotkov Date: Thu, 28 Aug 2025 15:19:49 +0500 Subject: [PATCH] 12 --- app/working_database.py | 17 +++++++++-------- requirements.txt | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/working_database.py b/app/working_database.py index 1675b0d..f911d06 100644 --- a/app/working_database.py +++ b/app/working_database.py @@ -3,7 +3,7 @@ import hvac from oracledb import Error, create_pool, init_oracle_client, DatabaseError from fastapi import HTTPException from dateutil import parser - +import datetime init_oracle_client() class SimpleDB: @@ -78,14 +78,15 @@ class SimpleDB: else: date_to = parser.parse('01.01.2000').date() print("Вывод отправляемых агрументов: ", id, organ, names, date_from, date_to, ver) print(type(int(id)), type(organ), type(names), type(date_from), type(date_to), type(ver)) - + dt_from = datetime.date(2025, 8, 28) + dt_to = datetime.date(2000, 1, 1) cursor.callproc('P_RK_SEND_JSON_LIST_FACEACC', [ - "", - "", - "", - "", - "", - "", + 10, + "fns", + "teset123", + dt_from, + dt_to, + "6", ]) except Error as e: raise HTTPException(status_code=500, detail=f"Database error: {e}") diff --git a/requirements.txt b/requirements.txt index 165ef52..dde605b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,3 +22,4 @@ starlette==0.47.3 typing-inspection==0.4.1 typing_extensions==4.15.0 urllib3==2.5.0 +datetime \ No newline at end of file