Skip to content

Commit a5e57e1

Browse files
authored
Merge pull request #933 from datanfr/participation-ranking
Fix bug 2
2 parents 0d51898 + b22d9f8 commit a5e57e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/models/Stats_model.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function get_groups_cohesion(){
194194
}
195195

196196
public function get_mps_participation(){
197-
$sql = 'SELECT cp.*, da.nameFirst, da.nameLast, da.civ, da.libelle AS libelle, da.libelleAbrev AS libelleAbrev, da.dptSlug, da.nameUrl, da.couleurAssociee, da.departementNom, da.departementCode
197+
$sql = 'SELECT cp.*, da.nameFirst, da.nameLast, da.civ, da.libelle AS libelle, da.libelleAbrev AS libelleAbrev, da.dptSlug, da.nameUrl, da.couleurAssociee, da.departementNom, da.departementCode, da.legislature AS legislature_last
198198
FROM class_participation cp
199199
LEFT JOIN deputes_last da ON cp.mpId = da.mpId AND da.legislature = cp.legislature
200200
WHERE da.active AND cp.legislature = ? AND cp.votesN > 5
@@ -205,7 +205,7 @@ public function get_mps_participation(){
205205

206206
public function get_mps_participation_solennels($legislature){
207207
$sql = 'SELECT cp.*, da.nameFirst, da.nameLast, da.civ, da.libelle AS libelle, da.libelleAbrev AS libelleAbrev, da.dptSlug, da.nameUrl, da.couleurAssociee, da.img,
208-
CONCAT(da.departementNom, " (", da.departementCode, ")") AS cardCenter
208+
CONCAT(da.departementNom, " (", da.departementCode, ")") AS cardCenter, da.legislature AS legislature_last
209209
FROM class_participation_solennels cp
210210
LEFT JOIN deputes_last da ON cp.mpId = da.mpId AND da.legislature = cp.legislature
211211
WHERE da.active AND cp.legislature = ?

0 commit comments

Comments
 (0)