mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
- Rework V2 upgrade so that it no longer resets cards in learning, or empties filtered decks. - V1 users will receive a message at the top of the deck list encouraging them to upgrade, and they can upgrade directly from that screen. - The setting in the preferences screen has been removed, so users will need to use an older Anki version if they wish to switch back to V1. - Prevent V2 exports with scheduling from being importable into a V1 collection - the code was previously allowing this when it shouldn't have been. - New collections still default to v1 at the moment. Also add helper to get map of decks and deck configs, as there were a few places in the codebase where that was required.
17 lines
514 B
Rust
17 lines
514 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
pub use crate::{
|
|
card::{Card, CardID},
|
|
collection::Collection,
|
|
deckconf::{DeckConf, DeckConfID},
|
|
decks::{Deck, DeckID, DeckKind},
|
|
err::{AnkiError, Result},
|
|
i18n::{tr_args, tr_strs, TR},
|
|
notes::{Note, NoteID},
|
|
notetype::NoteTypeID,
|
|
revlog::RevlogID,
|
|
timestamp::{TimestampMillis, TimestampSecs},
|
|
types::Usn,
|
|
};
|
|
pub use slog::{debug, Logger};
|