TahaFawzyElshrif commited on
Commit
14faaa0
·
1 Parent(s): 5a8e898

working on queue, finalization

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def call(request: RequestAnswer):
91
  if answer is None:
92
  return {"status": "error"}
93
  elif "status" in answer and json.loads(answer)["status"] == "pending":
94
- return {"status": "processing"}
95
  else:
96
 
97
  redis_conn.delete(f'ANSWER_FOR_USER_ID{request.user_id}_OF_{request.msg_id}') # Clean up after fetching for memory and better secure as double call is wrong
 
91
  if answer is None:
92
  return {"status": "error"}
93
  elif "status" in answer and json.loads(answer)["status"] == "pending":
94
+ return {"status": "pending"}
95
  else:
96
 
97
  redis_conn.delete(f'ANSWER_FOR_USER_ID{request.user_id}_OF_{request.msg_id}') # Clean up after fetching for memory and better secure as double call is wrong