mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
ofCids: returns did of all cids
This commit is contained in:
parent
d48111af68
commit
e70a317ac5
1 changed files with 3 additions and 0 deletions
|
@ -470,6 +470,9 @@ class DeckManager:
|
|||
dids.append(id)
|
||||
return self.col.db.list("select id from cards where did in " + ids2str(dids))
|
||||
|
||||
def for_card_ids(self, cids: List[int]) -> List[int]:
|
||||
return self.col.db.list(f"select did from cards where id in {ids2str(cids)}")
|
||||
|
||||
def _recoverOrphans(self) -> None:
|
||||
dids = list(self.decks.keys())
|
||||
mod = self.col.db.mod
|
||||
|
|
Loading…
Reference in a new issue