diff --git a/src/main/kotlin/io/gitlab/jfronny/sdom/SDom.kt b/src/main/kotlin/io/gitlab/jfronny/sdom/SDom.kt index 7eefa14..4f9132f 100644 --- a/src/main/kotlin/io/gitlab/jfronny/sdom/SDom.kt +++ b/src/main/kotlin/io/gitlab/jfronny/sdom/SDom.kt @@ -205,10 +205,10 @@ object SDom { }.body() println(response) - if (response.importError != null) { - resultFlow.emit(Result.failure(Exception(response.importError))) - return@launch - } +// if (response.importError != null) { +// resultFlow.emit(Result.failure(Exception(response.importError))) +// return@launch +// } do { val result: List = authenticatedClient.get(SDCredentials.url) { url { @@ -224,6 +224,7 @@ object SDom { } } while (true) } catch (e: Exception) { + logger.error("Failed to submit solution", e) resultFlow.emit(Result.failure(e)) } } diff --git a/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDJudgement.kt b/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDJudgement.kt index 6a246af..1297b69 100644 --- a/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDJudgement.kt +++ b/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDJudgement.kt @@ -13,6 +13,6 @@ data class SDJudgement( val id: String, val valid: Boolean, @SerialName("judgement_type_id") val judgementTypeId: String?, - @SerialName("judgehost") val judgeHost: String?, + // not needed @SerialName("judgehost") val judgeHost: String?, @SerialName("max_run_time") val maxRunTime: Float?, ) \ No newline at end of file diff --git a/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDSubmission.kt b/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDSubmission.kt index 5869971..ac7d399 100644 --- a/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDSubmission.kt +++ b/src/main/kotlin/io/gitlab/jfronny/sdom/model/SDSubmission.kt @@ -10,9 +10,9 @@ data class SDSubmission( @SerialName("contest_time") val contestTime: String, @SerialName("team_id") val teamId: String, @SerialName("problem_id") val problemId: String, - val files: List?, + //not needed val files: List?, val id: String, @SerialName("external_id") val externalId: String?, - @SerialName("entry_point") val entryPoint: String?, - @SerialName("import_error") val importError: String?, + //not needed @SerialName("entry_point") val entryPoint: String?, + //not needed, I guess? @SerialName("import_error") val importError: String?, ) \ No newline at end of file