Skip to content

Commit

Permalink
Fix: bad ref
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Oct 24, 2023
1 parent 1e35993 commit 186a4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/web/web_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ def gap_analysis_weak_links() -> Any:
cache_key = make_cache_key(standards=standards, key=key)

database = db.Node_collection()
result = database.get_gap_analysis_result(cache_key=cache_key)
if result:
gap_analysis_results = database.get_gap_analysis_result(cache_key=cache_key)
if gap_analysis_results:
gap_analysis_dict = json.loads(gap_analysis_results)
if gap_analysis_dict.get("result"):
return jsonify({"result": gap_analysis_dict.get("result")})
Expand Down

0 comments on commit 186a4cb

Please sign in to comment.