From 46710db5744171ee41fa1aa1faeef40782f6e966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 20 Apr 2022 22:04:39 -0300 Subject: [PATCH] Atualiza pacotes e corrige sintaxe de Print --- requirements/requirements.txt | 2 +- sigi/apps/servicos/management/commands/importa_servico.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 7fabe19..adce183 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -4,7 +4,7 @@ Pillow==9.1.0 psycopg2-binary==2.9.3 requests==2.27.1 weasyprint==54.3 -Django==4.0.3 +Django==4.0.4 django-auth-ldap==4.0.0 django-environ==0.8.1 django-extensions==3.1.5 diff --git a/sigi/apps/servicos/management/commands/importa_servico.py b/sigi/apps/servicos/management/commands/importa_servico.py index f0de687..316b16b 100644 --- a/sigi/apps/servicos/management/commands/importa_servico.py +++ b/sigi/apps/servicos/management/commands/importa_servico.py @@ -27,7 +27,7 @@ Importa dados de serviços de arquivos TXT gerados pela COTIN. if (not 'TEMPLATE' in reader.fieldnames or not 'NAME' in reader.fieldnames or not 'COD_ORGAO' in reader.fieldnames): - print reader.fieldnames + print (reader.fieldnames) raise CommandError("Formato inválido do arquivo.") self.stdout.write('Estrutura parece ok.') self.stdout.write("Preparando dados...")