From a2da35691253271ffccdfd224ebac232f3b89403 Mon Sep 17 00:00:00 2001 From: DmitryGantimurov Date: Fri, 25 Aug 2023 13:37:59 +0300 Subject: [PATCH] minor changes --- back/add_poems_and_filters.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/back/add_poems_and_filters.py b/back/add_poems_and_filters.py index b978df3..6c6116f 100644 --- a/back/add_poems_and_filters.py +++ b/back/add_poems_and_filters.py @@ -2,7 +2,6 @@ from sqlalchemy.orm import Session from typing import Annotated from fastapi import Depends from . import auth_utils, orm_models, pydantic_schemas -import random import datetime # Переменные для получения данных о мусорках с внешнего API @@ -39,7 +38,7 @@ def add_poems_to_db(db: Session): # В конце каждой итерации добавляем в базу данных db.add(poem) db.commit() - db.refresh(poem) + # db.refresh(poem) # close the file f1.close()