You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: airflow/dags/secmar_checks.py
+7
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,13 @@ def checks():
146
146
from operations
147
147
where "cross" in ('Antilles-Guyane', 'Guadeloupe', 'Guyane', 'La Réunion', 'Martinique', 'Mayotte', 'Nouvelle-Calédonie', 'Polynésie') and (est_metropolitain or est_metropolitain is null)
148
148
""",
149
+
"operations_stats_migrant_avec_clandestins": """
150
+
select count(1) = 0
151
+
from operations as op
152
+
join operations_stats as stats on stats.operation_id = op.operation_id
153
+
join resultats_humain rh on rh.operation_id = op.operation_id and rh.categorie_personne = 'Migrant'
sum(case when categorie_personne not in ('Clandestin', 'Migrant') and resultat_humain ='Personne impliquée dans fausse alerte' then nombre else 0 end) nombre_personnes_impliquees_dans_fausse_alerte_sans_clandestins,
123
121
sum(case when categorie_personne not in ('Clandestin', 'Migrant') and resultat_humain ='Personne retrouvée' then nombre else 0 end) nombre_personnes_retrouvees_sans_clandestins,
124
122
sum(case when categorie_personne not in ('Clandestin', 'Migrant') and resultat_humain ='Personne secourue' then nombre else 0 end) nombre_personnes_secourues_sans_clandestins,
125
-
sum(case when categorie_personne not in ('Clandestin', 'Migrant') and resultat_humain ='Personne tirée d''affaire seule' then nombre else 0 end) nombre_personnes_tirees_daffaire_seule_sans_clandestins
123
+
sum(case when categorie_personne not in ('Clandestin', 'Migrant') and resultat_humain ='Personne tirée d''affaire seule' then nombre else 0 end) nombre_personnes_tirees_daffaire_seule_sans_clandestins,
124
+
sum(case when categorie_personne in ('Clandestin', 'Migrant') then 0 else nombre end) nombre_personnes_impliquees_sans_clandestins,
0 commit comments