From 2ba41e126c05a5e9aeb561e8e3e6d9ac1a227852 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Mon, 2 Dec 2024 01:41:46 +0100 Subject: [PATCH] set priority when not found to PriorityOther in case a new set type is added it's unlikey we want it sorted first, it'll probably be a new product so it's probably best to sort it with the funny things --- oracle/src/oracleimporter.cpp | 2 +- oracle/src/oracleimporter.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/oracle/src/oracleimporter.cpp b/oracle/src/oracleimporter.cpp index a511831c8..bfa68e64e 100644 --- a/oracle/src/oracleimporter.cpp +++ b/oracle/src/oracleimporter.cpp @@ -24,7 +24,7 @@ CardSet::Priority OracleImporter::getSetPriority(QString &setType, QString &shor if (!setTypePriorities.contains(setType.toLower())) { qDebug() << "warning: Set type" << setType << "unrecognized for prioritization"; } - CardSet::Priority priority = setTypePriorities.value(setType.toLower(), CardSet::PriorityFallback); + CardSet::Priority priority = setTypePriorities.value(setType.toLower(), CardSet::PriorityOther); if (nonEnglishSets.contains(shortName)) { priority = CardSet::PriorityLowest; } diff --git a/oracle/src/oracleimporter.h b/oracle/src/oracleimporter.h index 60b2eeec4..48b609e2f 100644 --- a/oracle/src/oracleimporter.h +++ b/oracle/src/oracleimporter.h @@ -7,6 +7,7 @@ #include // many users prefer not to see these sets with non english arts +// they will given priority PriorityLowest const QStringList nonEnglishSets = {"4BB", "FBB", "PS11", "PSAL", "REN", "RIN"}; const QMap setTypePriorities{ {"core", CardSet::PriorityPrimary},