Skip to content

Commit

Permalink
rename alignment to alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalbaghel committed Aug 25, 2020
1 parent b17932e commit 6d33aae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions badgrclient/badgrmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def create(
issuer_eid,
criteria_text=None,
criteria_url=None,
alignment=None,
alignments=None,
tags=None,
expires=None
) -> 'BadgeClass':
Expand All @@ -202,7 +202,7 @@ def create(
criteria_url (string, optional): Link of the criteria to earn the
badge.
Defaults to None.
alignment (list[dict {
alignments (list[dict {
"targetName": "string",
"targetUrl": "string",
"targetDescription": "string",
Expand All @@ -229,7 +229,7 @@ def create(
'description': description,
'criteria_text': criteria_text,
'criteria_url': criteria_url,
'alignments': alignment if alignment else [],
'alignments': alignments if alignments else [],
'tags': tags if tags else [],
'expires': expires,
}
Expand Down

0 comments on commit 6d33aae

Please sign in to comment.