Browse Source

Merge pull request #182 from lucasmndc/master

Formatação sync_ldap.py
master
Sesostris Vieira 1 month ago
committed by GitHub
parent
commit
30d6a1d893
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 22
      sigi/apps/servidores/jobs/daily/sync_ldap.py

22
sigi/apps/servidores/jobs/daily/sync_ldap.py

@ -113,24 +113,20 @@ class Job(JobReportMixin, DailyJob):
"como Externos"
)
)
self.report_data.append(
_(
"============================================================="
"============="
)
)
self.report_data.append("=" * 72)
self.report_data.append("")
for s in Servidor.objects.filter(
ldap_dn="", externo=False, sigi=False
).order_by("nome_completo"):
self.report_data.append(s.nome_completo)
self.report_data.append(f"- {s.nome_completo}")
self.report_data.append("")
self.report_data.append(_("RESUMO"))
self.report_data.append(_("======"))
self.report_data.append("RESUMO")
self.report_data.append("=" * 6)
self.report_data.append("")
self.report_data.append(f"* {total_ldap} usuários lidos do LDAP")
self.report_data.append(f"* {total_create} novos servidores criados")
self.report_data.append(f"* {total_update} servidores atualizados")
self.report_data.append(f"* {total_deactive} usuários desativados")
self.report_data.append("")
self.report_data.append(_(f"{total_ldap} usuários lidos do LDAP"))
self.report_data.append(_(f"{total_create} novos servidores criados"))
self.report_data.append(_(f"{total_update} servidores atualizados"))
self.report_data.append(_(f"{total_deactive} usuários desativados"))

Loading…
Cancel
Save