Anki/qt/aqt/browser
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
..
sidebar Use default flag name when flag is renamed to empty string (#3826) 2025-02-21 16:38:04 +07:00
table Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00
__init__.py new change notetype implementation for the frontend 2021-06-10 22:19:24 +10:00
browser.py Feat/grade now (#3840) 2025-03-15 17:30:40 +07:00
card_info.py Copy card debug info (#3801) 2025-02-16 16:06:12 +07:00
find_and_replace.py Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00
find_duplicates.py Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00
layout.py Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00
previewer.py Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00