Skip to content

Commit

Permalink
chore(rs-2024): mise à jour des constats de rentrées
Browse files Browse the repository at this point in the history
  • Loading branch information
gBusato committed Jan 22, 2025
1 parent 05b511c commit 04e9e75
Show file tree
Hide file tree
Showing 4 changed files with 88,660 additions and 86,975 deletions.
1 change: 1 addition & 0 deletions server/src/modules/import/fileTypes/Constat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const ConstatSchema = z.object({
UAI: z.string(),
"Mef Bcp 11": z.string(),
"Nombre d'élèves : Total": z.string(),
"Rentrée scolaire": z.string(),
});

export type Constat = z.infer<typeof ConstatSchema>;
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ export const [importConstatRentree] = inject(
}),
async (constatRentreeLine, count) => {
const mefStat11 = constatRentreeLine["Mef Bcp 11"];
const rentreeScolaireConstat = constatRentreeLine["Rentrée scolaire"].trim();

if (mefStat11) {
if (mefStat11 && rentreeScolaireConstat === rentreeScolaire) {
const nMef = await findNMef({
mefstat: constatRentreeLine["Mef Bcp 11"],
});
Expand Down
Loading

0 comments on commit 04e9e75

Please sign in to comment.