Commit e8c8edbf authored by Felix Freiberger's avatar Felix Freiberger
Browse files

Defense helper.

parent a89ffdfc
Pipeline #25343 passed with stages
in 2 minutes and 17 seconds
......@@ -447,13 +447,13 @@ const LeaderboardPage: React.FC<{}> = () => {
</Table> : <span>not available</span> }
</details>
<details>
<summary>First Matriculation to Team Name</summary>
<summary>Data for Project Defense Scheduling</summary>
<pre>
{ data && data.testResults ? Object.keys(data.testResults).map((projectName) => {
const matriculationMatch = /np-ss\d+-project-(\d{7})/.exec(projectName);
if (!matriculationMatch) return "";
if (!data.testResults) throw new Error("Unexpected missing test results.");
return `${matriculationMatch[1]}\t${data.testResults[projectName].teamName}\n`;
return `${matriculationMatch[1]}\t${data.testResults[projectName].commit}\t${data.testResults[projectName].teamName}\n`;
}).join("") : null }
</pre>
</details>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment