Skip to content

Commit

Permalink
Revert "Skip reviews for items that have moved to a higher level on t…
Browse files Browse the repository at this point in the history
…he backend (#269)" (#569)

Fixes #591, fixes #608
  • Loading branch information
UInt2048 committed Feb 12, 2023
1 parent 680acde commit 7449bb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions ios/LocalCachingClient.swift
Expand Up @@ -159,13 +159,6 @@ private func postNotificationOnMainQueue(_ notification: Notification.Name) {
continue
}

// Skip assignments that are a higher level than the user's current level. Wanikani items that
// have moved to later levels can end up in this state and reviews will not be saved by the WK
// API so they end up perpetually reviewed.
if user.hasLevel, user.level < assignment.level {
continue
}

if assignment.isLessonStage {
lessonCount += 1
} else if assignment.isReviewStage {
Expand Down
1 change: 0 additions & 1 deletion ios/ReviewItem.swift
Expand Up @@ -35,7 +35,6 @@ class ReviewItem: NSObject {

for assignment in assignments {
if !localCachingClient.isValid(subjectId: assignment.subjectID) ||
(userInfo.hasLevel && userInfo.level < assignment.level) ||
!isIncluded(assignment) {
continue
}
Expand Down

0 comments on commit 7449bb5

Please sign in to comment.