Skip to content

Commit

Permalink
Ajoute l'effet attendu "Efficacité énergétique"
Browse files Browse the repository at this point in the history
  • Loading branch information
amandinejacquelin authored and marc-rutkowski committed Oct 9, 2024
1 parent 19cf663 commit 68a4a40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions data_layer/sqitch/deploy/plan_action/fiches.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

BEGIN;

-- Ajout Efficacité énergétique dans la liste des effets attendus
insert into effet_attendu (id, nom, notice)
values (25, 'Efficacité énergétique', null)
on conflict do nothing;

-- Ajout données résultats attendus dans effets attendus
insert into fiche_action_effet_attendu
select f.id, ea.id
Expand All @@ -15,8 +20,6 @@ left join effet_attendu ea on case
trim(ea.nom) = 'Allongement de la durée d''usage'
when f.resultat = 'Amélioration de la qualité de vie' then
trim(ea.nom) = 'Amélioration du cadre de vie'
when f.resultat = 'Efficacité énergétique' then
trim(ea.nom) = 'Réduction des consommations énergétiques' -- TODO attente vérification
when f.resultat = 'Sobriété énergétique' then
trim(ea.nom) = 'Sobriété'
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const date = async (sheet: any, celluleCoordonnes: any) => {
// ou à défaut essaye d'interpréter la valeur formattée
return await nettoieDate(sheet[celluleCoordonnes].w);
};


/**
* Nettoie des thématiques
Expand Down Expand Up @@ -220,9 +220,6 @@ export const resultats= async (resultats : string, memoire : TMemoire) : Promise
case "Amélioration de la qualité de vie" :
effetToAdd = "Amélioration du cadre de vie";
break;
case "Efficacité énergétique" :
effetToAdd = "Réduction des consommations énergétiques"
break;
case "Sobriété énergétique" :
effetToAdd = "Sobriété"
break;
Expand Down

0 comments on commit 68a4a40

Please sign in to comment.