Redmind commited on
Commit
ec83df8
·
verified ·
1 Parent(s): ae05e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -553,7 +553,7 @@ async def upload_document(
553
  values = (company_id,file_path, documentName, documentDescription, department, version,vectorDBflag, lastUpdated)
554
  cursor.execute(query, values)
555
  cnx.commit()
556
- # row_id=cursor.lastrowid
557
  cursor.close()
558
  cnx.close()
559
 
@@ -987,6 +987,7 @@ async def API_saveconnectors(request: Request,
987
  cursor.execute(query, values)
988
  cnx.commit()
989
  logging.info(f"Query executed successfully, {cursor.rowcount} row(s) affected")
 
990
  cursor.close()
991
  cnx.close()
992
  logging.info(f"Data_connectors for {APIName} inserted successfully")
 
553
  values = (company_id,file_path, documentName, documentDescription, department, version,vectorDBflag, lastUpdated)
554
  cursor.execute(query, values)
555
  cnx.commit()
556
+ row_id=cursor.lastrowid
557
  cursor.close()
558
  cnx.close()
559
 
 
987
  cursor.execute(query, values)
988
  cnx.commit()
989
  logging.info(f"Query executed successfully, {cursor.rowcount} row(s) affected")
990
+ row_id = cursor.lastrowid
991
  cursor.close()
992
  cnx.close()
993
  logging.info(f"Data_connectors for {APIName} inserted successfully")