Skip to content

Commit 8a397d3

Browse files
authored
Merge pull request #473 from JetBrains/e5l/interview
Filter out interview tags on the backend
2 parents 7e9e5ad + c7c4294 commit 8a397d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/main/kotlin/org/jetbrains/kotlinconf/backend/services/SessionizeService.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ class SessionizeService(
7676
val sessions = sessions.mapNotNull { it ->
7777
val startsAt = it.startsAt ?: return@mapNotNull null
7878
val endsAt = it.endsAt ?: return@mapNotNull null
79-
val tags = it.categoryItems.mapNotNull { tags[it]?.name }
79+
val tags: List<String> = it.categoryItems.mapNotNull { tags[it]?.name }
80+
81+
if ("Interview" in tags) return@mapNotNull null
82+
8083
Session(
8184
it.id,
8285
it.displayTitle,

0 commit comments

Comments
 (0)