Skip to content

Commit 8f8d691

Browse files
committed
Return table id too
1 parent a829135 commit 8f8d691

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

macrostrat_db_insertion/server.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ def process_user_feedback_input_request(request_data, session):
921921
if not success:
922922
return success, err_msg
923923

924-
return True, None
924+
return True, request_additional_data["internal_run_id"]
925925

926926
# Opentially take in user id
927927
@app.post("/record_run")
@@ -951,11 +951,14 @@ async def record_run(
951951
print("Returning error message", error_msg)
952952
raise HTTPException(status_code=400, detail=error_msg)
953953

954+
table_id = error_msg
955+
954956
success, internal_id = get_internal_user_id(user_id, session)
955957

956958
return JSONResponse(content={
957959
"success": "Successfully processed the run",
958-
"internal_id": str(internal_id)
960+
"internal_id": str(internal_id),
961+
"table_id": str(table_id)
959962
})
960963

961964
@app.get("/health")

0 commit comments

Comments
 (0)