Commit a89ffdfc authored by Gregory Stock's avatar Gregory Stock 🐈
Browse files

Merge branch 'master' of...

Merge branch 'master' of ssh://dgit.cs.uni-saarland.de:2222/np/2020/np-ss20-project-visualizer into master
parents 946ebb15 cc0a15b4
Pipeline #23566 passed with stages
in 1 minute and 50 seconds
......@@ -427,22 +427,35 @@ const LeaderboardPage: React.FC<{}> = () => {
<h1>Private Data</h1>
<details>
<summary>TestTickAudit statistics (based on <code>testTickFormulaRadius3Time3</code>)</summary>
<Table striped hover variant="dark">
{ tickAuditStats ? <Table striped hover variant="dark">
<thead>
<tr>
<th>#</th>
<th>Status</th>
</tr>
</thead>
{ tickAuditStats ? tickAuditStats.map(({ value, count }, i) => <tr key={i}>
<tbody>
{ tickAuditStats.map(({ value, count }, i) => <tr key={i}>
<td>
{ count }
</td>
<td>
<code>{ value }</code>
</td>
</tr>) : <span>not available</span> }
</Table>
</tr>) }
</tbody>
</Table> : <span>not available</span> }
</details>
<details>
<summary>First Matriculation to Team Name</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`;
}).join("") : null }
</pre>
</details>
<details>
<summary>Complete JSON report</summary>
......
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