Browse Source

Update ressuscita_dependencias.py

pull/3459/head
Abdul muhaimin 3 years ago
committed by GitHub
parent
commit
d5bc5c5ed6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      sapl/legacy/scripts/ressuscita_dependencias.py

2
sapl/legacy/scripts/ressuscita_dependencias.py

@ -414,7 +414,7 @@ def get_ressuscitar(slug):
def get_slug():
arq = DIR_DADOS_MIGRACAO.child('siglas_para_slugs.yaml')
with open(arq, 'r') as arq:
siglas_para_slugs = yaml.load(arq, yaml.Loader)
siglas_para_slugs = yaml.load(arq, yaml.SafeLoader)
sigla = NOME_BANCO_LEGADO[-3:]
return siglas_para_slugs[sigla]

Loading…
Cancel
Save