Abdul muhaimin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
sapl/legacy_migration_settings.py
|
@ -54,7 +54,7 @@ match = re.match('sapl_cm_(.*)', NOME_BANCO_LEGADO) |
|
|
SIGLA_CASA = match.group(1) |
|
|
SIGLA_CASA = match.group(1) |
|
|
_PATH_TABELA_TIMEZONES = DIR_DADOS_MIGRACAO.child('tabela_timezones.yaml') |
|
|
_PATH_TABELA_TIMEZONES = DIR_DADOS_MIGRACAO.child('tabela_timezones.yaml') |
|
|
with open(_PATH_TABELA_TIMEZONES, 'r') as arq: |
|
|
with open(_PATH_TABELA_TIMEZONES, 'r') as arq: |
|
|
tabela_timezones = yaml.load(arq, yaml.Loader) |
|
|
tabela_timezones = yaml.load(arq, yaml.SafeLoader) |
|
|
municipio, uf, nome_timezone = tabela_timezones[SIGLA_CASA] |
|
|
municipio, uf, nome_timezone = tabela_timezones[SIGLA_CASA] |
|
|
if nome_timezone: |
|
|
if nome_timezone: |
|
|
PYTZ_TIMEZONE = pytz.timezone(nome_timezone) |
|
|
PYTZ_TIMEZONE = pytz.timezone(nome_timezone) |
|
|