ankidroid / ankidroid/Anki-Android

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

オープン
#21,832 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Needs Triage
主要言語
Kotlin
スター
11.8k
フォーク
2.9k
平均マージ
2日 3時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。