From 8f9e07d71b5ad4dbf5a4c55983d0d3833fa61102 Mon Sep 17 00:00:00 2001 From: pi3c Date: Fri, 5 Jan 2024 22:26:38 +0300 Subject: [PATCH] fix commits restore main.py --- .../db_management_and_automation/servicemanager/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/information_system_and_programming/term_5/db_management_and_automation/servicemanager/main.py b/information_system_and_programming/term_5/db_management_and_automation/servicemanager/main.py index dd8f734..d5dc4ef 100644 --- a/information_system_and_programming/term_5/db_management_and_automation/servicemanager/main.py +++ b/information_system_and_programming/term_5/db_management_and_automation/servicemanager/main.py @@ -11,7 +11,9 @@ async def generate_test_data(): """ Создание БД и наполнение ее данными """ - print("generating data") + from backend.queries.user import UserORM + await UserORM.create_tables() + await UserORM.insert_admin() def create_app():