Anki/qt/aqt/operations
Jarrett Ye 0e31efac08
Feat/grade now (#3840)
* Feat/grade now

* pass ci

* fix from_queue

* Refactor card answering to support from_queue flag

- Add `from_queue` field to `CardAnswer` struct and proto message
- Modify `answer_card_inner` to handle queue updates based on `from_queue`
- Remove `grade_card` method and consolidate card answering logic
- Update related test cases to set `from_queue` flag

* fix current_changes() called when no op set

* Optimize queue updates for batch card processing

- Refactor `grade_now` to collect processed card IDs first
- Add new `update_queues_for_processed_cards` method for efficient batch queue updates
- Improve queue management by removing entries and updating counts in a single pass
- Remove individual queue update method in favor of batch processing

* pass ci

* keep the same style

* remove ineffective code

* remove unused imports
2025-03-15 17:30:40 +07:00
..
__init__.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
card.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
collection.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
deck.py Add title for some dialogs and avoid hardcoding the text of the discard changes dialog (#3846) 2025-03-10 15:53:43 +07:00
note.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
notetype.py Skip template checks in Fields screen (#2670) 2023-09-20 16:09:54 +10:00
scheduling.py Feat/grade now (#3840) 2025-03-15 17:30:40 +07:00
tag.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00