Skip to content

Commit

Permalink
simplify user of site_group_name
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-labri-tipton committed Oct 12, 2023
1 parent 0928068 commit eb207e2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sites_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,19 +434,16 @@ def sites_toolbox_page():
unsafe_allow_html=True,
)
else:
site_group = get_site_group_by_name(
session=session, site_group_name=site_group_name
)

user = create_user(
session=session,
email=email,
site_group_name=site_group.site_group_name,
site_group_name=site_group_name,
)

user_details = {
"email": str(user.email),
"site_group": str(site_group.site_group_name),
"site_group": str(site_group_name),
"date_added": (user.created_utc.strftime("%Y-%m-%d")),
}
st.json(user_details)
Expand Down

0 comments on commit eb207e2

Please sign in to comment.