Solution
# ...
return render_template("home.html", **{
'total1': total1,
'total2': total2
})
const total1 = document.getElementById('total1');
const total2 = document.getElementById('total2');
// ...
# ...
return render_template("home.html", **{
'total1': total1,
'total2': total2
})
const total1 = document.getElementById('total1');
const total2 = document.getElementById('total2');
// ...