Skip to content

Commit

Permalink
Merge pull request #1324 from robert-marik/thirdTime
Browse files Browse the repository at this point in the history
Fixing some achievements (third_time, persistence, super_persistence)
  • Loading branch information
Alex-Jordan authored Apr 16, 2021
2 parents 374de41 + 4c5fc05 commit 817a19f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#This checks to see if the student has solved the problem after a certain
# number of incorrect attempts

if ($problem->status == 1 && $problem->num_incorrect >= 20) {
if ($problem->status == 1 && $problem->num_correct == 1 && $problem->num_incorrect >= 20) {
return 1
} else {
return 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#This checks to see if the student has solved the problem after a certain
# number of incorrect attempts

if ($problem->status == 1 && $problem->num_incorrect >= 100) {
if ($problem->status == 1 && $problem->num_correct == 1 && $problem->num_incorrect >= 100) {
return 1
} else {
return 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#This checks to see if the student has a certain number of attempts

if ($problem->num_correct == 1 and $problem->num_incorrect == 2) {
if ($problem->num_correct == 1 and $problem->num_incorrect == 2 and $problem->status == 1) {
return 1;
} else {
return 0;
Expand Down

0 comments on commit 817a19f

Please sign in to comment.