From 3a6e0ba12f0c177a06e30fde2ab2a5fe13a80e7f Mon Sep 17 00:00:00 2001 From: Rachel Tipton Date: Fri, 13 Oct 2023 10:38:57 +0200 Subject: [PATCH] replace create_new_site_group --- src/sites_toolbox.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sites_toolbox.py b/src/sites_toolbox.py index 6fede6e..b568d3a 100644 --- a/src/sites_toolbox.py +++ b/src/sites_toolbox.py @@ -7,7 +7,7 @@ from sqlalchemy import func from pvsite_datamodel.connection import DatabaseConnection from pvsite_datamodel.sqlmodels import SiteSQL -from pvsite_datamodel.write.user_and_site import make_user +from pvsite_datamodel.write.user_and_site import make_site_group from pvsite_datamodel.read import ( get_all_sites, get_user_by_email, @@ -17,7 +17,6 @@ from get_data import ( create_new_site, - create_new_site_group, create_user, get_all_users, get_all_site_groups, @@ -479,8 +478,8 @@ def sites_toolbox_page(): unsafe_allow_html=True, ) else: - new_site_group = create_new_site_group( - session=session, + new_site_group = make_site_group( + db_session=session, site_group_name=new_site_group_name, ) new_site_group_details = {