From da498f7696680fcc22c8c8ee90efec603ee90281 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Wed, 26 Jun 2024 00:33:01 +0200 Subject: [PATCH] (feat) replace whitespaces with underscore --- frontend/pages/orchestration/credentials/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/pages/orchestration/credentials/app.py b/frontend/pages/orchestration/credentials/app.py index 8ff1eac..5c3328c 100644 --- a/frontend/pages/orchestration/credentials/app.py +++ b/frontend/pages/orchestration/credentials/app.py @@ -42,7 +42,7 @@ with c1: st.header("Create a New Account") new_account_name = st.text_input("New Account Name") if st.button("Create Account"): - new_account_name = new_account_name.strip() + new_account_name = new_account_name.replace(" ", "_") if new_account_name: if new_account_name in accounts: st.warning(f"Account {new_account_name} already exists.")