Skip to content

Commit 82119ff

Browse files
committed
Fixing points type in shadow assignment's points (create and update endpoints).
1 parent 93d963b commit 82119ff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • recodex/plugins/shadow_assignments

recodex/plugins/shadow_assignments/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def create_points(api: ApiClient, assignment_id, user_id, points, note):
8888

8989
awarded_at = int(time.time())
9090
api.create_shadow_assignment_points(
91-
assignment_id, user_id, points, note, awarded_at)
91+
assignment_id, user_id, int(points), note, awarded_at)
9292

9393

9494
@cli.command()
@@ -102,7 +102,8 @@ def update_points(api: ApiClient, points_id, points, note):
102102
"""
103103

104104
awarded_at = int(time.time())
105-
api.update_shadow_assignment_points(points_id, points, note, awarded_at)
105+
api.update_shadow_assignment_points(points_id, int(points), note,
106+
awarded_at)
106107

107108

108109
@cli.command()

0 commit comments

Comments
 (0)