Skip to content

Commit

Permalink
Customize c3nav for FOSDEM 2024.
Browse files Browse the repository at this point in the history
+ Exclude "online only" rooms: D.collab, D.confidential, D.energy,
  D.matrix, D.minimalistic, D.research, D.sds
+ Related commit: 4d294b3.
  • Loading branch information
johnjohndoe committed Jan 19, 2024
1 parent 339f3b0 commit 73f8a5c
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,48 @@ class RoomForC3NavConverter {

private const val EMPTY_STRING = ""

// Keys must be uppercase!
private val ROOM_TO_C3NAV_MAPPING = mapOf(
// FOSDEM 2024

"AW1.120" to "aw1120",
"AW1.121" to "aw1121",
"AW1.125" to "aw1125",
"AW1.126" to "aw1126",
"H.1301 (CORNIL)" to "h1301",
"H.1302 (DEPAGE)" to "h1302",
"H.1308 (ROLIN)" to "h1308",
"H.1309 (VAN RIJN)" to "h1309",
"H.2111" to "h2111",
"H.2213" to "h2213",
"H.2214" to "h2214",
"H.2215 (FERRER)" to "h2215",
"H.3242" to "h3242",
"H.3244" to "h3244",
"J.1.106" to "j1106",
"JANSON" to "janson",
"K.1.105 (LA FONTAINE)" to "k1105",
"K.3.201" to "k3201",
"K.3.401" to "k3401",
"K.4.201" to "k4201",
"K.4.401" to "k4401",
"K.4.601" to "k4601",
"UA2.114 (BAUDOUX)" to "ua2114",
"UA2.118 (HENRIOT)" to "ua2118",
"UA2.220 (GUILLISSEN)" to "ua2220",
"UB2.147" to "ub2147",
"UB2.252A (LAMEERE)" to "ub2252a",
"UB4.132" to "ub4132",
"UB4.136" to "ub4136",
"UB4.228" to "ub4228",
"UB5.132" to "ub5132",
"UB5.230" to "ub5230",
"UD2.119" to "ud2110",
"UD2.120 (CHAVANNE)" to "ud2120",
"UD2.208 (DECROLY)" to "ud2208",
"UD2.218A" to "ud2218a",

// Congress
"ADA" to "hall-a",
"BORG" to "hall-b",
"CLARKE" to "hall-c",
Expand Down Expand Up @@ -98,6 +139,7 @@ class RoomForC3NavConverter {
val c3navName = ROOM_TO_C3NAV_MAPPING[roomName.uppercase()]
c3navName ?: EMPTY_STRING
}

else -> EMPTY_STRING
}

Expand Down

0 comments on commit 73f8a5c

Please sign in to comment.