diff --git a/OpenCand.API/jpg-normalize.sh b/OpenCand.API/jpg-normalize.sh deleted file mode 100644 index b0a5bc0..0000000 --- a/OpenCand.API/jpg-normalize.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -cd ./fotos_cand -COUNT=0 -shopt -s nocaseglob - -# Loop through all folders -for dir in */; do - # Change into the directory - cd "$dir" || continue - - # Loop over every “.jpeg” (or “.JPEG”): - for f in *.jpeg; do - # “${f%.[jJ][pP][eE][gG]}” strips off the .jpeg/.JPEG suffix - base="${f%.[jJ][pP][eE][gG]}" - newfile="${base}.jpg" - - # If there’s already a .jpg with the same “base,” decide what to do: - if [ -e "$newfile" ]; then - echo "Skipping $f → $newfile (target exists)" - # you could `rm "$f"` or move it to a backup folder here if you prefer - else - mv -v "$f" "$newfile" - fi - done - - # Change back to the parent directory - cd .. -done - -shopt -u nocaseglob - -# Print a message indicating completion -echo "Normalization complete. Processed $COUNT files." \ No newline at end of file diff --git a/OpenCand.ETL/Parser/ParserManager.cs b/OpenCand.ETL/Parser/ParserManager.cs index 17e3ba6..602b2a0 100644 --- a/OpenCand.ETL/Parser/ParserManager.cs +++ b/OpenCand.ETL/Parser/ParserManager.cs @@ -58,9 +58,9 @@ namespace OpenCand.Parser var despesasDirectory = Path.Combine(BasePath, csvSettings.DespesaCandidatoFolder); var receitasDirectory = Path.Combine(BasePath, csvSettings.ReceitaCandidatoFolder); - //await ParseFolder(candidatosDirectory, candidatoParserService); - //await ParseFolder(bensCandidatosDirectory, bemCandidatoParserService); - //await ParseFolder(redesSociaisDirectory, redeSocialParserService); + await ParseFolder(candidatosDirectory, candidatoParserService); + await ParseFolder(bensCandidatosDirectory, bemCandidatoParserService); + await ParseFolder(redesSociaisDirectory, redeSocialParserService); await ParseFolder(despesasDirectory, despesaParserService); await ParseFolder(receitasDirectory, receitaParserService);