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() diff --git a/back/service.py b/back/service.py index 5b1026d..549bc4c 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 = ""