Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -190,7 +190,7 @@ async def submit_company_profile(request: Request,
|
|
190 |
logging.info(f"Company profile for {company_name} inserted successfully with company_id: {company_id}")
|
191 |
|
192 |
# Insert user details with the retrieved company_id
|
193 |
-
user_query = "INSERT INTO user_detail (company_id, username, password) VALUES (%s, %s, %s, %s)"
|
194 |
user_values = (company_id, username, password, role)
|
195 |
logging.info(f"Executing user detail query: {user_query} with values: {user_values}")
|
196 |
cursor.execute(user_query, user_values)
|
|
|
190 |
logging.info(f"Company profile for {company_name} inserted successfully with company_id: {company_id}")
|
191 |
|
192 |
# Insert user details with the retrieved company_id
|
193 |
+
user_query = "INSERT INTO user_detail (company_id, username, password,role) VALUES (%s, %s, %s, %s)"
|
194 |
user_values = (company_id, username, password, role)
|
195 |
logging.info(f"Executing user detail query: {user_query} with values: {user_values}")
|
196 |
cursor.execute(user_query, user_values)
|