Skip to content

Commit cd15247

Browse files
committed
Use new custom.csv in nwrcc-2025-2026 as example
1 parent bf4b391 commit cd15247

File tree

3 files changed

+53
-143
lines changed

3 files changed

+53
-143
lines changed
Lines changed: 25 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
[
2+
{
3+
"type": "overrideOrganisationTemplate",
4+
"logo": {
5+
"type": "Image",
6+
"url": "/media/organizations/{org.id}/logo.svg"
7+
}
8+
},
29
{
310
"type": "overrideTeamTemplate",
411
"regexes": {
5-
"custom": {
12+
"fromName": {
613
"from": "{team.fullName}",
714
"rules": {
815
"([^:]*): (.*) (\\([^)]*\\))": {
9-
"org": "$1",
1016
"funnyNameValue": "$2",
11-
"contestants": "$3",
12-
},
13-
"spb(.*)": {
14-
"compValue": "$1"
15-
}
17+
"contestants": "$3"
18+
}
19+
}
20+
},
21+
"fromId": {
22+
"from": "{team.id}",
23+
"rules": {
24+
"spb(.*)": {"compValue": "$1"}
1625
}
1726
}
1827
},
19-
"organizationId": "{regexes.custom.org}",
2028
"customFields": {
21-
"funnyName": "{regexes.custom.funnyNameValue}",
22-
"comp": "{regexes.custom.compValue}"
29+
"funnyName": "{regexes.fromName.funnyNameValue}",
30+
"comp": "{regexes.fromId.compValue}"
2331
}
2432
},
25-
{
26-
"type": "overrideTeamTemplate",
27-
"regexes": {
28-
"custom": {
29-
"from": "{team.id}",
30-
"rules": {
31-
"spb(.*)": {
32-
"compValue": "$1"
33-
}
34-
}
35-
}
36-
},
37-
"customFields": {
38-
"comp": "{regexes.custom.compValue}"
39-
}
40-
},
4133
{
4234
"type": "overrideTeamTemplate",
4335
"displayName": "{org.displayName}: {funnyName}",
36+
"fullName": "{org.fullName}: {funnyName}",
4437
"medias": {
4538
"screen": {
4639
"type": "WebRTCGrabberConnection",
@@ -62,33 +55,12 @@
6255
}
6356
}
6457
},
65-
{
66-
"type": "overrideProblems",
67-
"rules": {
68-
"W": {
69-
"color": "#a6406eff"
70-
},
71-
"X": {
72-
"color": "#bb7190ff"
73-
},
74-
"Y": {
75-
"color": "#3daa91ff"
76-
},
77-
"Z": {
78-
"color": "#3f4a58ff"
79-
}
80-
}
81-
},
8258
{
8359
"type": "addMedals",
8460
"gold": 5,
8561
"silver": 8,
8662
"bronze": 10
8763
},
88-
{
89-
"type": "overrideQueue",
90-
"maxQueueSize": 20
91-
},
9264
{
9365
"type": "overrideScoreboardSettings",
9466
"problemColorPolicy": {
@@ -111,100 +83,11 @@
11183
"J": { "color": "#3EABB4" },
11284
"K": { "color": "#000000" },
11385
"L": { "color": "#8E74B7" },
86+
87+
"W": { "color": "#a6406e" },
88+
"X": { "color": "#bb7190" },
89+
"Y": { "color": "#3daa91" },
90+
"Z": { "color": "#3f4a58" }
11491
}
115-
},
116-
{
117-
"type": "overrideTeamTemplate",
118-
"organizationId": "{team.customFields.organization_id}"
119-
},
120-
{
121-
"type": "overrideOrganisationTemplate",
122-
"logo": {
123-
"type": "Image",
124-
"url": "/media/organizations/{org.id}/logo.svg"
125-
}
126-
},
127-
{
128-
"type": "overrideOrganizations",
129-
"rules": {
130-
"3295": {
131-
"displayName": "St. Petersburg ITMO University"
132-
},
133-
"1366": {
134-
"displayName": "Novgorod State University"
135-
},
136-
"1456": {
137-
"displayName": "Petrozavodsk State University"
138-
},
139-
"1584": {
140-
"displayName": "St. Petersburg Baltic State Technical University"
141-
},
142-
"1587": {
143-
"displayName": "St. Petersburg Polytechnic University"
144-
},
145-
"1592": {
146-
"displayName": "St. Petersburg University of Aerospace Instrumentation"
147-
},
148-
"1772": {
149-
"displayName": "St. Petersburg State University of Architecture and Civil Engineering"
150-
},
151-
"1802": {
152-
"displayName": "St. Petersburg State University"
153-
},
154-
"3526": {
155-
"displayName": "St. Petersburg Academic University"
156-
},
157-
"4325": {
158-
"displayName": "St. Petersburg State University of Telecommunications"
159-
},
160-
"5320": {
161-
"displayName": "St. Petersburg Electrotechnical University LETI"
162-
},
163-
"5341": {
164-
"displayName": "Herzen State Pedagogical University"
165-
},
166-
"5343": {
167-
"displayName": "Popov Naval Institute of Radio Electronics"
168-
},
169-
"6536": {
170-
"displayName": "Pskov State University"
171-
},
172-
"7043": {
173-
"displayName": "Admiral Makarov State University of Maritime and Inland Shipping"
174-
},
175-
"7537": {
176-
"displayName": "St. Petersburg State University of Economics"
177-
},
178-
"7846": {
179-
"displayName": "A. Pushkin Leningrad State University"
180-
},
181-
"7935": {
182-
"displayName": "Military Telecommunications Academy named after the Soviet Union Marshal Budienny S.M."
183-
},
184-
"9606": {
185-
"displayName": "St. Petersburg Campus of HSE University"
186-
},
187-
"10354": {
188-
"displayName": "Mikhailovskaya Military Artillery Academy"
189-
},
190-
"10615": {
191-
"displayName": "St. Petersburg State University of Industrial Technologies and Design"
192-
},
193-
"10617": {
194-
"displayName": "Murmansk Arctic University"
195-
},
196-
"10618": {
197-
"displayName": "Polytechnic College of Novgorod State University"
198-
},
199-
"14046": {
200-
"displayName": "St. Petersburg State Forest Technical University named after S.M. Kirova"
201-
},
202-
"14047": {
203-
"displayName": "Military Space Academy"
204-
},
205-
"24938": {
206-
"displayName": "Military Academy of Logistics"
207-
}
208-
}
209-
}
92+
}
21093
]

config/icpc-northern-eurasia/nwrrc-2025-2026/custom-fields.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
team_id,icpcid,icpc_id,original_name,university_display_name,group_id,organization_id
1+
team_id,icpcid,icpc_id,original_name,university_display_name,group_id,organizationId
22
spb101,1115012,1115012,<3,St. Petersburg State University,37957,1802
33
spb102,1117231,1117231,Deprecated 25,St. Petersburg ITMO University,37957,3295
44
spb103,1117232,1117232,Log'n'roll,St. Petersburg State University,37957,1802
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
org_id,fullName,displayName
2+
3295,St. Petersburg ITMO University,SPb ITMO
3+
1366,Novgorod State University,NovSU
4+
1456,Petrozavodsk State University,Petrozavodsk SU
5+
1584,St. Petersburg Baltic State Technical University,BSTU
6+
1587,St. Petersburg Polytechnic University,Polytech
7+
1592,St. Petersburg University of Aerospace Instrumentation,SUAI
8+
1772,St. Petersburg State University of Architecture and Civil Engineering,SPSUACE
9+
1802,St. Petersburg State University,St. Petersburg SU
10+
3526,St. Petersburg Academic University,St. Petersburg AU
11+
4325,St. Petersburg State University of Telecommunications,SPb SUT
12+
5320,St. Petersburg Electrotechnical University LETI,SPbETU
13+
5341,Herzen State Pedagogical University,Herzen SPU
14+
5343,Popov Naval Institute of Radio Electronics,Popov Naval I of RE
15+
6536,Pskov State University,Pskov SU
16+
7043,Admiral Makarov State University of Maritime and Inland Shipping,Makarov SU of Maritime and IS
17+
7537,St. Petersburg State University of Economics,SPb SU of Economics
18+
7846,A. Pushkin Leningrad State University,Pushkin Leningrad SU
19+
7935,Military Telecommunications Academy named after the Soviet Union Marshal Budienny S.M.,Budenny Mil Telecom A
20+
9606,St. Petersburg Campus of HSE University,SPb HSE
21+
10354,Mikhailovskaya Military Artillery Academy,MVAA
22+
10615,St. Petersburg State University of Industrial Technologies and Design,SPb SUITD
23+
10617,Murmansk Arctic University,Murmansk AU
24+
10618,Polytechnic College of Novgorod State University,Pol C of Novgorod SU
25+
14046,St. Petersburg State Forest Technical University named after S.M. Kirova,SPbFTU
26+
14047,Military Space Academy,MSA
27+
24938,Military Academy of Logistics,Military A of Logistics

0 commit comments

Comments
 (0)