Skip to content

Commit

Permalink
amend migration code
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-weinberg committed Sep 17, 2024
1 parent 49a0fe3 commit 9994a53
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static void updateToCurrentVersion(Map<String, Object> state) {
newKey.endsWith("FirstJam") || newKey.endsWith("FirstJamNumber")) {
newKey = "";
}
if(newKey.startsWith("ScoreBoard.Settings.Setting(ScoreBoard.Operator__")) {
if (newKey.startsWith("ScoreBoard.Settings.Setting(ScoreBoard.Operator__")) {
newKey = newKey.replace("Operator__", ".");
}
if (newKey.contains("Jam.SuddenScoringMaxTrainingPoints")) {
Expand Down Expand Up @@ -183,7 +183,8 @@ private static String minVersionWith(String key, String priorLimit) {
(key.contains("Skater(") && key.endsWith("HasUnserved")) ||
(key.contains("Timeout(") && key.endsWith("OrRequest")) ||
(key.contains("Timeout(") && key.endsWith("OrResult")) ||
(key.contains("Team(") && key.endsWith("AllBlockersSet")) || key.contains("(Timeout.JamDuring)")) {
(key.contains("Team(") && key.endsWith("AllBlockersSet")) || key.contains("(Timeout.JamDuring)") ||
key.endsWith("ExtraPenaltyTime")) {
return "v2025";
}
if (priorLimit.equals("v2023") || key.endsWith("ExportBlockedBy") || key.contains("ScoreAdjustment") ||
Expand Down

0 comments on commit 9994a53

Please sign in to comment.