Conditionally pin Flask version based on Python version.

This commit is contained in:
Akshay Joshi
2022-08-17 12:21:05 +05:30
parent d4fdd4601e
commit f771d3a4bb
4 changed files with 11 additions and 10 deletions

View File

@@ -1896,7 +1896,7 @@ def start_query_download_tool(trans_id):
errormsg=TRANSACTION_STATUS_CHECK_FAILED
)
data = request.values if request.values else request.get_json(force=True)
data = request.values if request.values else request.get_json(silent=True)
if data is None:
return make_json_response(
status=410,
@@ -2435,7 +2435,7 @@ def clear_query_history(trans_id):
status, error_msg, conn, trans_obj, session_ob = \
check_transaction_status(trans_id)
filter = request.get_json(force=True)
filter = request.get_json(silent=True)
return QueryHistory.clear(current_user.id, trans_obj.sid, conn.db, filter)