ankidroid / ankidroid/Anki-Android

Notes added via API ignore any "Deck Override" settings of the provided note type (model)

未关闭
#21,832 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Needs Triage
主要语言
Kotlin
星标
11.8k
派生
2.9k
平均合并
2 天 3 小时
30 天内合并 PR
171

描述

### Checked for duplicates?

- [x] This issue is not a duplicate

### Does it also happen in the desktop version?

- [x] This bug does not occur in the latest version of Anki Desktop

### What are the steps to reproduce this bug?

In Ankidroid:
1. Navigate to Settings > Advanced > Plugins
2. Turn "Enable Ankidroid API" on

In the [Pleco](https://www.pleco.com/) app:
1. Navigate to Settings > Modules > Flashcards
2. Under System, set Flashcard System to "AnkiDroid"
3. Configure "New Card Deck", "Default New Card Model"
4. Under Basic Settings > Configure Card models, set the card model

Make sure that the model you've configured has the deck override option turned on AND that the override it points to is not the deck that Pleco is adding cards to by default.

**When adding a note via Pleco, the note (and all its cards) ends up in the specified deck, regardless of any override specified on cards within the note type.**

### Expected behaviour

The expected behaviour is that the deck override is checked after a new note is added. This way, cards within the model after correctly moved (overridden) to the decks specified in the note type

### Debug info

```text
AnkiDroid Version = 2.24.0 (ebcf8e0e34921628b9b8a496c66ffd4adbb3705f)
Backend Version = 0.1.64-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
Android Version = 16 (SDK 36)
ProductFlavor = play
Device Info = samsung | samsung | a53x | a53xnaeea | SM-A536B | s5e8825
WebView Info = [com.google.android.webview | 797704203]: Mozilla/5.0 (Linux; Android 16; SM-A536B Build/BP2A.250605.031.A3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/152.0.7977.42 Mobile Safari/537.36
ACRA UUID = 553d09ed-158f-4585-8045-d48b00c7d2bb
FSRS = 5.1.0 (Enabled: true)
Crash Reports Enabled = true
```

### (Optional) Anything else you want to share?

- Further discussion of this behaviour can be found [here](https://www.reddit.com/r/Anki/comments/1wdvxeu/can_i_learn_the_cards_of_notes_at_different_rates/)
- Deck override functionality works as expected when adding a note manually within AnkiDroid
- Thanks for taking the time to look into this

### Research

- [x] I have checked the [manual](https://docs.ankidroid.org/) and the [FAQ](https://github.com/ankidroid/Anki-Android/wiki/FAQ) and could not find a solution to my issue
- [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release ([instructions](https://docs.ankidroid.org/manual.html#betaTesting))

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。