mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
add "due on day" search
This commit is contained in:
parent
843ec29228
commit
b75851d823
2 changed files with 5 additions and 0 deletions
|
@ -825,6 +825,7 @@ message SearchTerm {
|
|||
IdList nids = 13;
|
||||
uint32 edited_in_days = 14;
|
||||
SearchTerm negated = 15;
|
||||
int32 due_on_day = 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -340,6 +340,10 @@ impl From<pb::SearchTerm> for Node<'_> {
|
|||
operator: "<=".to_string(),
|
||||
kind: PropertyKind::Due(i),
|
||||
}),
|
||||
Filter::DueOnDay(i) => Node::Search(SearchNode::Property {
|
||||
operator: "=".to_string(),
|
||||
kind: PropertyKind::Due(i),
|
||||
}),
|
||||
Filter::EditedInDays(u) => Node::Search(SearchNode::EditedInDays(u)),
|
||||
Filter::CardState(state) => Node::Search(SearchNode::State(
|
||||
pb::search_term::CardState::from_i32(state)
|
||||
|
|
Loading…
Reference in a new issue