Skip to content

Commit

Permalink
fix: grant same number of extra attempts as scorm limit
Browse files Browse the repository at this point in the history
  • Loading branch information
satikaj committed Jun 11, 2024
1 parent 34f61b0 commit 176ff7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def apply_for_scorm_extension(user, text)

# Add a scorm extension to the task
def grant_scorm_extension(by_user)
if update(scorm_extensions: self.scorm_extensions + 1)
if update(scorm_extensions: self.scorm_extensions + task_definition.scorm_attempt_limit)
return true
else
return false
Expand Down

0 comments on commit 176ff7f

Please sign in to comment.