Hi i'm trying to take some information from a python list of dictionaries and put them into javascript variables. But i keep getting this error at line 5. Can you help me ? Here's the code :
const i = [];
const j = [];
const total = [0];
{% for item in dic %}
i.push( {{ item.phase }} );
if ({{ item.phase }} == 'Full Moon'){
m.push([{{ item.number }},0])
total.push({{ item.number }})
};
else {
m.push([0,{{ item.number }}])
total[0]+={{ item.number }}
};
{% endfor %}