Browse Source

Atualiza pacotes e corrige sintaxe de Print

pull/159/head
Sesostris Vieira 3 years ago
parent
commit
46710db574
  1. 2
      requirements/requirements.txt
  2. 2
      sigi/apps/servicos/management/commands/importa_servico.py

2
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

2
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...")

Loading…
Cancel
Save