Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug 2 #933

Merged
merged 1 commit into from
Feb 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions application/models/Stats_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function get_groups_cohesion(){
}

public function get_mps_participation(){
$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
$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
FROM class_participation cp
LEFT JOIN deputes_last da ON cp.mpId = da.mpId AND da.legislature = cp.legislature
WHERE da.active AND cp.legislature = ? AND cp.votesN > 5
Expand All @@ -205,7 +205,7 @@ public function get_mps_participation(){

public function get_mps_participation_solennels($legislature){
$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,
CONCAT(da.departementNom, " (", da.departementCode, ")") AS cardCenter
CONCAT(da.departementNom, " (", da.departementCode, ")") AS cardCenter, da.legislature AS legislature_last
FROM class_participation_solennels cp
LEFT JOIN deputes_last da ON cp.mpId = da.mpId AND da.legislature = cp.legislature
WHERE da.active AND cp.legislature = ?
Expand Down