From d7f85bbbbb9fb616268328ac57164b0768f26d32 Mon Sep 17 00:00:00 2001 From: MatManSky Date: Mon, 7 Aug 2023 12:54:56 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=BC=D0=B0=D0=BB=D0=B5=D0=BD=D1=8C=D0=BA?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BD=D0=BE=D0=B2=D0=B2=D0=BE=D0=B2=D0=B5=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=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, 1 insertion(+), 1 deletion(-) diff --git a/back/service.py b/back/service.py index 07269e8..17c4ba3 100644 --- a/back/service.py +++ b/back/service.py @@ -9,7 +9,7 @@ import datetime # Загружаем стихи def add_poems_to_db(db: Session): f1 = open('text121.txt', encoding='utf-8', mode='r')#открыть фаил для чтения на русском - for a in range(1, 102): + for a in range(1, 110): f1.seek(0)#перейти к началу i=0 str1 = "" From dd88913abb7ecb561a9af63b52d16772614c0a26 Mon Sep 17 00:00:00 2001 From: MatManSky Date: Mon, 7 Aug 2023 12:55:44 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=BC=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/delete_all_poems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/delete_all_poems.py b/back/delete_all_poems.py index 5070402..b091924 100644 --- a/back/delete_all_poems.py +++ b/back/delete_all_poems.py @@ -1,6 +1,6 @@ from .models import Poems from .db import database -to_delete = database.query(Poems).filter(Poems.id > 102) +to_delete = database.query(Poems).filter(Poems.id > 110) database.delete(to_delete) database.commit()