Browse Source

Remove prints

pull/159/head
Sesostris Vieira 3 years ago
parent
commit
ea3e0301c8
  1. 3
      sigi/apps/parlamentares/jobs/minutely/importa_parlamentar.py

3
sigi/apps/parlamentares/jobs/minutely/importa_parlamentar.py

@ -177,7 +177,6 @@ class Job(MinutelyJob):
for row in reader: for row in reader:
total += 1 total += 1
if (total % 1000) == 0: if (total % 1000) == 0:
print(total)
if not ( if not (
row["CD_CARGO"] in cargos row["CD_CARGO"] in cargos
and row["CD_SIT_TOT_TURNO"] in cod_situacao and row["CD_SIT_TOT_TURNO"] in cod_situacao
@ -316,7 +315,6 @@ class Job(MinutelyJob):
return result return result
sequenciais = {n[3:14]: n for n in zip_file.namelist()} sequenciais = {n[3:14]: n for n in zip_file.namelist()}
print(f"Importar {len(sequenciais)} fotos")
parlamentares = Parlamentar.objects.filter( parlamentares = Parlamentar.objects.filter(
sequencial_tse__in=sequenciais.keys() sequencial_tse__in=sequenciais.keys()
) )
@ -324,7 +322,6 @@ class Job(MinutelyJob):
total = len(zip_file.namelist()) total = len(zip_file.namelist())
imported = parlamentares.count() imported = parlamentares.count()
skiped = total - imported skiped = total - imported
print(f"{imported} parlamentares encontrados")
if imported <= 0: if imported <= 0:
result["erros"].append( result["erros"].append(

Loading…
Cancel
Save