Skip to content

Commit

Permalink
chore: [ACI-473] update badges related payload atttibutes to match da…
Browse files Browse the repository at this point in the history
…ta models (#7)
  • Loading branch information
wowkalucky authored Mar 26, 2024
1 parent ad0aabb commit bd6b4ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"type": "string"
},
{
"name": "type",
"name": "origin",
"type": "string"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"type": "string"
},
{
"name": "type",
"name": "origin",
"type": "string"
},
{
Expand Down
4 changes: 2 additions & 2 deletions openedx_events/learning/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,14 @@ class BadgeTemplateData:
Arguments:
uuid (str): UUID of the badge template
type (str): type of badge template
origin (str): type of badge template
name (str): badge name
description (str): badge description
image_url (str): badge image url
"""

uuid = attr.ib(type=str)
type = attr.ib(type=str)
origin = attr.ib(type=str)
name = attr.ib(type=str, default=None)
description = attr.ib(type=str, default=None)
image_url = attr.ib(type=str, default=None)
Expand Down

0 comments on commit bd6b4ac

Please sign in to comment.