From 8fd8ce8220657b61cdbec4f080fbec5db2e88c3b Mon Sep 17 00:00:00 2001 From: trotFunky Date: Wed, 24 Jul 2024 16:27:43 +0100 Subject: [PATCH] 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. --- static_files/vote_chart.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/static_files/vote_chart.js b/static_files/vote_chart.js index 45b3ab2..5bc5e54 100644 --- a/static_files/vote_chart.js +++ b/static_files/vote_chart.js @@ -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) {