исправил косяки
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-05-01 20:22:40 +10:00
parent f4cabfacbe
commit e894e7f9f5

View File

@@ -1,5 +1,8 @@
import psycopg2
from psycopg2.extras import RealDictCursor
from pydantic import BaseModel
from typing import List, Optional
from fastapi import HTTPException
# Параметры подключения к БД
DB_CONFIG = {
@@ -27,7 +30,7 @@ class ParsedData(BaseModel):
category: str
translation_text: str
short_text: str
# Функции для работы с БД (без эндпоинтов)
def save_parsed_data_to_db(data: ParsedData):
conn = None