Skip to content

Commit

Permalink
fix: formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Dec 14, 2023
1 parent ef43f71 commit a01e8f8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions webapp/shop/cred/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,17 @@ def cred_your_exams(ua_contracts_api, trueability_api, **kwargs):
contract_item_id = (
exam_contract.get("id") or exam_contract["contractItem"]["id"]
)
if "effectivenessContext" in exam_contract and "status" in exam_contract["effectivenessContext"] and exam_contract["effectivenessContext"]["status"] == "expired":
exams_expired.append(
{"name": name, "state": "Expired", "actions": []}
)
continue

if (
"effectivenessContext" in exam_contract
and "status" in exam_contract["effectivenessContext"]
and exam_contract["effectivenessContext"]["status"]
== "expired"
):
exams_expired.append(
{"name": name, "state": "Expired", "actions": []}
)
continue

if "reservation" in exam_contract["cueContext"]:
response = trueability_api.get_assessment_reservation(
Expand Down

0 comments on commit a01e8f8

Please sign in to comment.