Skip to content

Commit

Permalink
Fix copypaste error
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Jul 29, 2023
1 parent ef2df11 commit b0327ce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ fun parseFileToCdsSettings(path: Path) : CDSSettings {
"cf.api.secret" to "apiSecret",
"problems.url" to "problemsUrl",
"submissions-url" to "submissionsUrl",
"contest_id" to "contestId",
"contest-url" to "contestUrl",
"timezone" to "timeZone",
"event_feed_name" to "eventFeedName",
Expand All @@ -232,7 +233,7 @@ fun parseFileToCdsSettings(path: Path) : CDSSettings {
}
}
properties.getProperty("type")?.let { properties.setProperty("type", it.lowercase()) }
properties.getProperty("resultType")?.let { properties.setProperty("type", it.uppercase()) }
properties.getProperty("resultType")?.let { properties.setProperty("resultType", it.uppercase()) }
@Suppress("UNCHECKED_CAST")
Properties.decodeFromStringMap<CDSSettings>(properties as Map<String, String>)
} else if (file.name.endsWith(".json")) {
Expand Down

0 comments on commit b0327ce

Please sign in to comment.