Compare commits
No commits in common. "fc073de1de7140423a81db8b3aaf71d9f3905188" and "6cd253d5f081b95498ddcf47cda3889928ced645" have entirely different histories.
fc073de1de
...
6cd253d5f0
@ -89,7 +89,7 @@ def apply_brute_force(players, preferences):
|
||||
print(result[2])
|
||||
|
||||
# team_table(score, team0, team1)
|
||||
return best_percentage[0]
|
||||
return best_score[0]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -200,17 +200,9 @@ function App() {
|
||||
{SubmitButton({ person, players })}
|
||||
<p>now: click submit.</p>
|
||||
</div>
|
||||
<p className="read-the-docs">
|
||||
suggested teams are not updated right away. don't try to hack the
|
||||
algorithm ;D
|
||||
</p>
|
||||
{TeamTables()}
|
||||
<p className="read-the-docs">
|
||||
something not working? message <a href="https://t.me/x0124816">me</a>.
|
||||
sources:{" "}
|
||||
<a href="https://git.0124816.xyz/julius/teambuilding" key="gitea">
|
||||
<img src="gitea.svg" alt="gitea" height="20" />
|
||||
</a>
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
|
@ -1,3 +1,4 @@
|
||||
import * as React from "react";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
@ -7,14 +8,12 @@ import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import data from "./table.json";
|
||||
|
||||
type Row = [player: string, fulfilled: number, total: number];
|
||||
|
||||
export default function TeamTables() {
|
||||
return (
|
||||
<>
|
||||
{Object.entries(data).map(([teamname, rows]) => (
|
||||
{Object.keys(data).map((teamname) => (
|
||||
<>
|
||||
<h1>{teamname}</h1>
|
||||
<h1>{teamname as String}</h1>
|
||||
<TableContainer component={Paper}>
|
||||
<Table
|
||||
sx={{ m: "8px auto" }}
|
||||
@ -28,7 +27,7 @@ export default function TeamTables() {
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{(rows as Row[]).map((row: Row) => (
|
||||
{data[teamname].map((row) => (
|
||||
<TableRow
|
||||
key={row[0]}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
|
Loading…
Reference in New Issue
Block a user