Skip to content

Commit

Permalink
Merge pull request #537 from edly-io/alisalman/fix-program-badge
Browse files Browse the repository at this point in the history
fix: program badge
  • Loading branch information
Ali-Salman29 authored Apr 26, 2024
2 parents 384d211 + c910166 commit c0a2377
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lms/djangoapps/badges/backends/badgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,11 @@ def _create_assertion(self, badge_class, user, evidence_url):
"identity": user.email,
"type": "email"
},
"evidence": [
{
"url": evidence_url
}
],
"notify": settings.BADGR_ENABLE_NOTIFICATIONS,
}
if evidence_url:
data["evidence"] = [{"url": evidence_url}]

response = requests.post(
self._assertion_url(badge_class.badgr_server_slug),
headers=self._get_headers(),
Expand Down

0 comments on commit c0a2377

Please sign in to comment.