web_interface/static/scripts/logsChart.js
Function main
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
async function main() {
//get entries for today
await fetch("/logs/entries")
.then(response=>response.json())
.then( function drawData(data) {
Function drawData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
.then( function drawData(data) {
let entries = JSON.parse(data);
console.log(entries)
new Chart(
document.getElementById("chart"), //context for the chart