fix(TServicoPEdido): Ajustes diversos
This commit is contained in:
parent
3b1654bf2c
commit
ea1c830010
4 changed files with 0 additions and 17 deletions
10
actions/env/env_config_loader.py
vendored
10
actions/env/env_config_loader.py
vendored
|
|
@ -8,16 +8,6 @@ class EnvConfigLoader:
|
||||||
"""
|
"""
|
||||||
Carrega variáveis de ambiente com um prefixo comum
|
Carrega variáveis de ambiente com um prefixo comum
|
||||||
e permite acessá-las diretamente via ponto, sem agrupar subníveis.
|
e permite acessá-las diretamente via ponto, sem agrupar subníveis.
|
||||||
|
|
||||||
Exemplo:
|
|
||||||
ORIUS_API_FDB_HOST=localhost
|
|
||||||
ORIUS_API_FDB_PORT=3050
|
|
||||||
ORIUS_API_FDB_POOL_SIZE=5
|
|
||||||
|
|
||||||
config = EnvConfigLoader("ORIUS_API_FDB")
|
|
||||||
print(config.host) # localhost
|
|
||||||
print(config.port) # 3050
|
|
||||||
print(config.pool_size) # 5
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, prefix: str):
|
def __init__(self, prefix: str):
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,6 @@ async def index(
|
||||||
current_user: dict = Depends(get_current_user),
|
current_user: dict = Depends(get_current_user),
|
||||||
url_params=Depends(get_url_params),
|
url_params=Depends(get_url_params),
|
||||||
):
|
):
|
||||||
|
|
||||||
print(url_params)
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Retorna todos os registros da tabela G_EMOLUMENTO.
|
Retorna todos os registros da tabela G_EMOLUMENTO.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ class TImovelIndexRepository(BaseRepository):
|
||||||
|
|
||||||
params = {"tipoClasse": t_imovel_index_schema.tipo_classe}
|
params = {"tipoClasse": t_imovel_index_schema.tipo_classe}
|
||||||
|
|
||||||
print(params)
|
|
||||||
|
|
||||||
# Execução do sql
|
# Execução do sql
|
||||||
response = self.fetch_all(sql, params)
|
response = self.fetch_all(sql, params)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,6 @@ class GCalculoServicoService:
|
||||||
|
|
||||||
def execute(self, data: GCalculoServico):
|
def execute(self, data: GCalculoServico):
|
||||||
|
|
||||||
print(data)
|
|
||||||
|
|
||||||
# Busca os parâmetros da aplicação
|
# Busca os parâmetros da aplicação
|
||||||
periodo_id = float(
|
periodo_id = float(
|
||||||
self._config_service.execute(
|
self._config_service.execute(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue