don't include non-empty notes in the list

This commit is contained in:
Damien Elmes 2020-04-25 18:47:26 +10:00
parent 5ac3fb5514
commit b476d071e7

View file

@ -43,12 +43,14 @@ impl Collection {
} }
}) })
.collect(); .collect();
if !empty.is_empty() {
out.push(EmptyCardsForNote { out.push(EmptyCardsForNote {
nid, nid,
empty, empty,
current_count, current_count,
}) })
} }
}
Ok(out) Ok(out)
} }