From 835dcf397937abd432a64ae12fc55fcd35db113f Mon Sep 17 00:00:00 2001 From: MatManSky Date: Tue, 8 Aug 2023 19:04:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/service.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/back/service.py b/back/service.py index dbd0972..9bdd1ed 100644 --- a/back/service.py +++ b/back/service.py @@ -29,8 +29,6 @@ def add_poems_to_db(db: Session): flag = True else: author += str1 - if(str1 != f"стих {a+1}\n"): - stixi+=str1#удаление /n и заключение в список poem = models.Poems(title=name, text=stixi, author=author) # В конце каждой итерации добавляем в базу данных db.add(poem)