Spaces:
Runtime error
Runtime error
Update app.py
Browse files499 unmodified lines500501502503504505506664 unmodified lines1171117211731174117511761177499 unmodified lines#on update of modal form the data table is refresh the value in datatable@app.get("/api/document_update")async def get_document(company_id: str = Query(...)):print(f"Received companyId and name: {company_id},{company_id}") # Log rec#async def get_data_connectors(company_id: str, company_name: str):logging.info(f"Received request for company_id and company_id: {company_id},{company_id}")664 unmodified linesraise HTTPException(status_code=404, detail="Data connector not found")except mysql.connector.Error as err:logging.error(f"Database error: {err}")raise HTTPException(status_code=500, detail="Internal Server Error")def delete_prompt_template_from_db(row_id: int) -> bool:logging.info(f"Received request for prompt_template company id: {row_id}")logging.info(f"Received request for prompt_template row id: {row_id}")499 unmodified lines500501502503504505506664 unmodified lines11711172117311741175117611771178499 unmodified lines#on update of modal form the data table is refresh the value in datatable@app.get("/api/document_update")async def get_document(company_id: str = Query(...)):print(f"Received companyId and name: {company_id},{company_id}") # Log rec#async def get_data_connectors(company_id: str, company_name: str):logging.info(f"Received request for company_id and company_id: {company_id},{company_id}")664 unmodified linesraise HTTPException(status_code=404, detail="Data connector not found")except mysql.connector.Error as err:logging.error(f"Database error: {err}")raise HTTPException(status_code=500, detail="Internal Server Error")def delete_prompt_template_from_db(row_id: int) -> bool:logging.info(f"Received request for prompt_template company id: {row_id}")logging.info(f"Received request for prompt_template row id: {row_id}")
app.py+3-2