From 91f16d72eabed159aba55044951f3f54e0c134c4 Mon Sep 17 00:00:00 2001 From: lucasmndc Date: Thu, 14 Nov 2024 14:22:56 -0300 Subject: [PATCH] =?UTF-8?q?Formata=C3=A7=C3=A3o=20sync=5Fldap.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/servidores/jobs/daily/sync_ldap.py | 22 ++++++++------------ 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/sigi/apps/servidores/jobs/daily/sync_ldap.py b/sigi/apps/servidores/jobs/daily/sync_ldap.py index 92f2990..06ae469 100644 --- a/sigi/apps/servidores/jobs/daily/sync_ldap.py +++ b/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"))