vote_chart: Remove test code

This was written for testing the chart before plugging in to the database,
remove it now that is not useful anymore.
This commit is contained in:
trotFunky 2024-07-24 16:27:43 +01:00
parent 982a7ffd65
commit 8fd8ce8220

View file

@ -1,14 +1,4 @@
// const names = ["Bystus", "Dory", "Fen", "Lucky", "Nico", "Peran", "trot"]
//
//
// let data = [];
// for (let i = 0; i < 7; i++) {
// data.push({
// parsing: true,
// label: names[i],
// data: Array.from(keys, () => Math.round(Math.random()*1.33))})
// }
async function main() {
const vote_response = await fetch(document.URL+"/votes");
if (!vote_response.ok) {