Redmind commited on
Commit
500ceb9
·
verified ·
1 Parent(s): 90f5deb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)