Skip to content

Commit

Permalink
fix gap analysis bug where we wouldn't remove calculated ga from wait…
Browse files Browse the repository at this point in the history
…ing list
  • Loading branch information
northdpole committed Jun 26, 2024
1 parent ff1f904 commit 04d6a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/utils/gap_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def preload(target_url: str):
)
if res1.status_code != 200:
print(f"{sa}->{sb} returned {res1.status_code}")
elif res1.json():
else:
if res1.json().get("result"):
forward = True
if f"{sa}->{sb}" in waiting:
Expand All @@ -142,7 +142,7 @@ def preload(target_url: str):
)
if res2.status_code != 200:
print(f"{sb}->{sa} returned {res1.status_code}")
elif res2.json():
else:
print(f"{sb}->{sa} success")
if res2.json().get("result"):
backward = True
Expand Down

0 comments on commit 04d6a7d

Please sign in to comment.