Skip to content

Commit

Permalink
Add photos from cms
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Aug 29, 2023
1 parent 0b68db0 commit c338ffc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cds/src/main/kotlin/org/icpclive/cds/cms/CmsDataSoruce.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.icpclive.cds.cms

import org.icpclive.api.*
import org.icpclive.cds.clics.api.Media
import org.icpclive.cds.cms.model.*
import org.icpclive.cds.common.ContestParseResult
import org.icpclive.cds.common.FullReloadContestDataSource
Expand Down Expand Up @@ -70,15 +71,17 @@ internal class CmsDataSource(val settings: CmsSettings) : FullReloadContestDataS
contestSystemId = k,
groups = emptyList(),
hashTag = null,
medias = emptyMap(),
medias = mapOf(
TeamMediaType.PHOTO to MediaType.Photo("${settings.url}/faces/$k", true)
),
isHidden = false,
isOutOfContest = false,
organizationId = v.team,
customFields = mapOf(
"country" to v.team,
"first_name" to v.f_name,
"last_name" to v.l_name
)
),
)
}
val info = ContestInfo(
Expand Down

0 comments on commit c338ffc

Please sign in to comment.