From 2bed018768bd5b5e8c92bcd6c3a883eead48d1fe Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 28 Jul 2020 09:49:11 +1000 Subject: [PATCH] fix note/card ids being flipped in card stats --- rslib/src/stats/card.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rslib/src/stats/card.rs b/rslib/src/stats/card.rs index f71a27566..ba0adf8b8 100644 --- a/rslib/src/stats/card.rs +++ b/rslib/src/stats/card.rs @@ -189,8 +189,8 @@ impl Collection { stats.push((i18n.tr(TR::CardStatsCardTemplate).into(), cs.card_type)); stats.push((i18n.tr(TR::CardStatsNoteType).into(), cs.note_type)); stats.push((i18n.tr(TR::CardStatsDeckName).into(), cs.deck)); - stats.push((i18n.tr(TR::CardStatsNoteId).into(), cs.cid.0.to_string())); - stats.push((i18n.tr(TR::CardStatsCardId).into(), cs.nid.0.to_string())); + stats.push((i18n.tr(TR::CardStatsCardId).into(), cs.cid.0.to_string())); + stats.push((i18n.tr(TR::CardStatsNoteId).into(), cs.nid.0.to_string())); let revlog = cs .revlog