From d1fe90a906be54c42b6551bc6b40fba17177b28b Mon Sep 17 00:00:00 2001 From: Louis Calas Date: Fri, 11 Oct 2019 11:32:01 +0200 Subject: [PATCH] Add double id check --- pdf/TestIdentique2.pdf | Bin 364713 -> 431059 bytes src/csv/GenerateCSV.java | 40 ++++++++++++++++++++++++++++++++++----- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/pdf/TestIdentique2.pdf b/pdf/TestIdentique2.pdf index ac2353fb1f4b00805ec6858d2d8f7d1e5a2132b0..2555adefae448987066fdf59ecf9c616a3ef8842 100644 GIT binary patch delta 22961 zcmd3OcRZHu|95s)*|JH9kZZdT*<{bmviBa@u96WMnU^g|R%B*HA<0ULq>RWWvy76S z5}aTo@M;O0hSF`_V(I0k{@ z=7wXCqG%W#1IKc6W8er;F|3$4N}QY9oSVYd%?7#`iH6}V9ue}=A<^*PfT9%!hP1+9(RP5cH41@4gRhX*7%T>Z0XJZ< zU@I|bYp^o{X@^9jtq^FS5pg68g+(I}aI`oE;t;GxTcN-V(iUxvLIK9b(c&m90**pM ztRUcr^Oj)V5`{v6Pqa8f>^B`a8VOiNBaq}0vpsj&mmM9<#FcHz;8I-!kn0q84fXp z5kpx55rN=`3(*)9{*xXtlMPS{94NpNng>E#V^An8Bs35g2nTqw2Kq)JEg=g)LZgt7 z@JKW;k)toQiD0gVCII&_mG4IyoTi4cGoq-nr33eqVW1sDMyf9QT- zaOfR?A&8DG5(Pwr>;c>kZ38rG4PpW?iornZaKIE;$Ycl<+7dDe0`kp6fBbD~NFoey zvm=wh03kbQ{h`T_Kx-f-AVLshzv%!|KpFyTfaHL_CGaUQ2GSnI2O5|dYOA(7{Fxs^+f_EAxPE#sgXnH1+fjB8HydCdPq}v4-Y~%4qLzzWJUC$pF>-N(P7NO z0m)CCgsk$1E_--83fvDk!$MJxgc5}f61W!<29gUFV+prIqY!BD#}+733^)|D0s|5U z0*$}XLBIqO77To22iC(N#{++{U>*ii%;7cojR5puAoT!>Xw2a!SOcv9>)=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4)r?FPj6oxgJQwyU zi5VU6kW8`&s2A0V$OUakvIa#CEGQ-p1}#=Ig{mNpFD_77;lz@UPJ|bW=~&>H#U+Bu z%5);|1W_cvLBT-GJ`tJ(+7+)O4zUQ4Xgodd&_IM^;sjz1p>oYSHV*76CQjsdi50`8 z30DRkiy}4e0Dq2mlyfEkh~|oQD)%oyMNxx)gr$AF0s)PiX H2ULFnxvx?# delta 19 bcmcb-Tx#V)v4$4L7N!>F7M3lnD<=Q|P<{u2 diff --git a/src/csv/GenerateCSV.java b/src/csv/GenerateCSV.java index 5c3aec9..ab684db 100644 --- a/src/csv/GenerateCSV.java +++ b/src/csv/GenerateCSV.java @@ -82,6 +82,26 @@ public class GenerateCSV { } } + + + public boolean alreadyExists(String etd) { + int count = 0; + + for(String etud : etudiants.keySet()) { + if (etud.contentEquals(etd)) { + count++; + } + } + + if(count >= 2) { + logger.info("Student's id "+etd+" already checked"); + return true; + } + else { + return false; + } + + } public void createFile() { try (PrintWriter writer = new PrintWriter(new File(this.path))) { @@ -95,6 +115,7 @@ public class GenerateCSV { writer.write(sb.toString()); + //Si l'id n'est pas vide if (!etudiants.isEmpty()) { for (String etud : this.etudiants.keySet()) { @@ -102,15 +123,24 @@ public class GenerateCSV { // Si etudiant HashMap est null, pas ecrit if (etud != null) { - if (this.isNumValid(etud) && this.isMarkValid(etudiants.get(etud))) { - writer.write(etud + ";" + etudiants.get(etud) + System.getProperty("line.separator")); - logger.debug("Added "+etud+" to csv"); + // Si n'existe pas deja (pas de double) + if(!alreadyExists(etud)) { + + if (this.isNumValid(etud) && this.isMarkValid(etudiants.get(etud))) { + writer.write(etud + ";" + etudiants.get(etud) + System.getProperty("line.separator")); + logger.debug("Added "+etud+" to csv"); + } + else { + logger.debug("Invalid pair for "+etud+" and "+etudiants.get(etud)+" not added to csv"); + } + } else { - logger.debug("Invalid pair for "+etud+" and "+etudiants.get(etud)+" not added to csv"); + logger.debug("Already existing id not added to csv"); } - } else { + } + else { logger.debug("Null id not added to csv"); }