Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -500,7 +500,7 @@ async def get_document(company_id: str = Query(...), company_name: str = Query(.
|
|
500 |
|
501 |
#on update of modal form the data table is refresh the value in datatable
|
502 |
@app.get("/api/document_update")
|
503 |
-
|
504 |
print(f"Received companyId and name: {company_id},{company_id}") # Log rec
|
505 |
#async def get_data_connectors(company_id: str, company_name: str):
|
506 |
logging.info(f"Received request for company_id and company_id: {company_id},{company_id}")
|
@@ -1171,7 +1171,8 @@ async def get_prompt_connectors(company_id: str = Query(...), company_name: str
|
|
1171 |
raise HTTPException(status_code=404, detail="Data connector not found")
|
1172 |
except mysql.connector.Error as err:
|
1173 |
logging.error(f"Database error: {err}")
|
1174 |
-
raise HTTPException(status_code=500, detail="Internal Server Error")
|
|
|
1175 |
def delete_prompt_template_from_db(row_id: int) -> bool:
|
1176 |
logging.info(f"Received request for prompt_template company id: {row_id}")
|
1177 |
logging.info(f"Received request for prompt_template row id: {row_id}")
|
|
|
500 |
|
501 |
#on update of modal form the data table is refresh the value in datatable
|
502 |
@app.get("/api/document_update")
|
503 |
+
async def get_document(company_id: str = Query(...)):
|
504 |
print(f"Received companyId and name: {company_id},{company_id}") # Log rec
|
505 |
#async def get_data_connectors(company_id: str, company_name: str):
|
506 |
logging.info(f"Received request for company_id and company_id: {company_id},{company_id}")
|
|
|
1171 |
raise HTTPException(status_code=404, detail="Data connector not found")
|
1172 |
except mysql.connector.Error as err:
|
1173 |
logging.error(f"Database error: {err}")
|
1174 |
+
raise HTTPException(status_code=500, detail="Internal Server Error")
|
1175 |
+
|
1176 |
def delete_prompt_template_from_db(row_id: int) -> bool:
|
1177 |
logging.info(f"Received request for prompt_template company id: {row_id}")
|
1178 |
logging.info(f"Received request for prompt_template row id: {row_id}")
|