Scheda di riepilogo - voti di lista non calcolati
Inviato: mar mag 06, 2014 3:18 pm
Buongiorno,
continuando con i test su un'elezione amministrativa ho rilevato che nella funzione "scheda di riepilogo" i voti di lista appaiono tutti a zero:
Voti di lista
Voti Validi Voti Nulli Voti Contestati Voti al solo candidato Sindaco Tot. Voti non Validi
0 0 0 0 0
****************************
Dai log vedo che le operazioni sul db sono le seguenti:
1 Query SET NAMES 'utf8'
1 Query select * from soraldo_config
1 Query select adminsuper, admincomune, adminop from soraldo_authors where aid='elecomuni' and pwd='9aecad8f04b1e58618d96e798a3f1b47' and (id_comune='14079' or id_comune=0)
1 Query select adminsuper, admincomune, adminop from soraldo_authors where aid='elecomuni' and pwd='9aecad8f04b1e58618d96e798a3f1b47' and (id_comune='14079' or id_comune=0)
1 Query SELECT t1.tipo_cons,t2.id_cons FROM soraldo_ele_consultazione as t1, soraldo_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='6' and t2.id_comune='14079'
1 Query SELECT genere,voto_g,voto_l FROM soraldo_ele_tipo where tipo_cons='3'
1 Query select adminsuper, admincomune, adminop from soraldo_authors where aid='elecomuni' and pwd='9aecad8f04b1e58618d96e798a3f1b47' and (id_comune='14079' or id_comune=0)
1 Query SELECT t1.tipo_cons,t1.descrizione,t1.id_cons_gen FROM soraldo_ele_consultazione as t1 where t1.id_cons_gen='6'
1 Query SELECT t2.id_cons FROM soraldo_ele_consultazione as t1, soraldo_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='6' and t2.id_comune='14079'
1 Query SELECT genere,voto_g,voto_l,voto_c,circo FROM soraldo_ele_tipo where tipo_cons='3' and lingua='it'
1 Query SELECT t1.limite FROM soraldo_ele_conf as t1 left join soraldo_ele_cons_comune as t2 on t1.id_conf=t2.id_conf where t2.id_cons='5'
1 Query select descrizione from soraldo_ele_comuni where id_comune='14079'
1 Query select fascia from soraldo_ele_cons_comune where id_cons='5'
1 Query SELECT '', t1.descrizione,t2.genere, t1.id_cons_gen,'' FROM soraldo_ele_consultazione as t1,soraldo_ele_tipo as t2 where t2.lingua='it' and t1.tipo_cons=t2.tipo_cons order by t1.data_inizio desc
1 Query select count(0) from soraldo_ele_circoscrizione where id_cons=5
1 Query select count(0) from soraldo_ele_sede where id_cons=5
1 Query select count(0) from soraldo_ele_gruppo where id_cons=5
1 Query select count(0) from soraldo_ele_lista where id_cons=5
1 Query SELECT sum(voti_complessivi) from soraldo_ele_voti_parziale where id_cons=5
1 Query SELECT sum(validi) from soraldo_ele_sezioni where id_cons=5
1 Query select id_comune,descrizione from soraldo_ele_comuni order by descrizione asc
1 Query SELECT sum(maschi),sum(femmine) FROM soraldo_ele_sezioni where id_cons='5'
1 Query SELECT data,orario FROM `soraldo_ele_rilaff` where id_cons_gen=6 order by data desc, orario desc limit 0,1
1 Query SELECT sum(voti_donne),sum(voti_uomini),sum(voti_complessivi) FROM soraldo_ele_voti_parziale where id_cons='5' and data='2014-05-25' and orario='23:00:00'
1 Query SELECT sum(solo_gruppo),sum(validi),sum(nulli),sum(bianchi),sum(contestati), sum(voti_nulli),sum(validi_lista),sum(voti_nulli_lista),sum(contestati_lista),sum(solo_lista) FROM soraldo_ele_sezioni where id_cons=5
1 Quit
*************************************
Dove sta l'errore?
continuando con i test su un'elezione amministrativa ho rilevato che nella funzione "scheda di riepilogo" i voti di lista appaiono tutti a zero:
Voti di lista
Voti Validi Voti Nulli Voti Contestati Voti al solo candidato Sindaco Tot. Voti non Validi
0 0 0 0 0
****************************
Dai log vedo che le operazioni sul db sono le seguenti:
1 Query SET NAMES 'utf8'
1 Query select * from soraldo_config
1 Query select adminsuper, admincomune, adminop from soraldo_authors where aid='elecomuni' and pwd='9aecad8f04b1e58618d96e798a3f1b47' and (id_comune='14079' or id_comune=0)
1 Query select adminsuper, admincomune, adminop from soraldo_authors where aid='elecomuni' and pwd='9aecad8f04b1e58618d96e798a3f1b47' and (id_comune='14079' or id_comune=0)
1 Query SELECT t1.tipo_cons,t2.id_cons FROM soraldo_ele_consultazione as t1, soraldo_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='6' and t2.id_comune='14079'
1 Query SELECT genere,voto_g,voto_l FROM soraldo_ele_tipo where tipo_cons='3'
1 Query select adminsuper, admincomune, adminop from soraldo_authors where aid='elecomuni' and pwd='9aecad8f04b1e58618d96e798a3f1b47' and (id_comune='14079' or id_comune=0)
1 Query SELECT t1.tipo_cons,t1.descrizione,t1.id_cons_gen FROM soraldo_ele_consultazione as t1 where t1.id_cons_gen='6'
1 Query SELECT t2.id_cons FROM soraldo_ele_consultazione as t1, soraldo_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='6' and t2.id_comune='14079'
1 Query SELECT genere,voto_g,voto_l,voto_c,circo FROM soraldo_ele_tipo where tipo_cons='3' and lingua='it'
1 Query SELECT t1.limite FROM soraldo_ele_conf as t1 left join soraldo_ele_cons_comune as t2 on t1.id_conf=t2.id_conf where t2.id_cons='5'
1 Query select descrizione from soraldo_ele_comuni where id_comune='14079'
1 Query select fascia from soraldo_ele_cons_comune where id_cons='5'
1 Query SELECT '', t1.descrizione,t2.genere, t1.id_cons_gen,'' FROM soraldo_ele_consultazione as t1,soraldo_ele_tipo as t2 where t2.lingua='it' and t1.tipo_cons=t2.tipo_cons order by t1.data_inizio desc
1 Query select count(0) from soraldo_ele_circoscrizione where id_cons=5
1 Query select count(0) from soraldo_ele_sede where id_cons=5
1 Query select count(0) from soraldo_ele_gruppo where id_cons=5
1 Query select count(0) from soraldo_ele_lista where id_cons=5
1 Query SELECT sum(voti_complessivi) from soraldo_ele_voti_parziale where id_cons=5
1 Query SELECT sum(validi) from soraldo_ele_sezioni where id_cons=5
1 Query select id_comune,descrizione from soraldo_ele_comuni order by descrizione asc
1 Query SELECT sum(maschi),sum(femmine) FROM soraldo_ele_sezioni where id_cons='5'
1 Query SELECT data,orario FROM `soraldo_ele_rilaff` where id_cons_gen=6 order by data desc, orario desc limit 0,1
1 Query SELECT sum(voti_donne),sum(voti_uomini),sum(voti_complessivi) FROM soraldo_ele_voti_parziale where id_cons='5' and data='2014-05-25' and orario='23:00:00'
1 Query SELECT sum(solo_gruppo),sum(validi),sum(nulli),sum(bianchi),sum(contestati), sum(voti_nulli),sum(validi_lista),sum(voti_nulli_lista),sum(contestati_lista),sum(solo_lista) FROM soraldo_ele_sezioni where id_cons=5
1 Quit
*************************************
Dove sta l'errore?