Skip to content

Commit

Permalink
acertando alguns detalhes e correções
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini47 committed Aug 18, 2024
1 parent 615dcf3 commit 2fce462
Show file tree
Hide file tree
Showing 64 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Back/Puxador_convenio.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DateRange(BaseModel):
published_since: date
published_until: date

async def puxador_bens1(date_range: DateRange) -> Union[List[Dict[str, Union[str, float]]], int]:
async def puxador_convenio(date_range: DateRange) -> Union[List[Dict[str, Union[str, float]]], int]:
# Formatando as datas no formato americano
published_since_str = date_range.published_since.strftime('%Y-%m-%d')
published_until_str = date_range.published_until.strftime('%Y-%m-%d')
Expand Down
4 changes: 0 additions & 4 deletions Back/Puxador_credito.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ async def puxador_credito(date_range: DateRange) -> Union[List[Dict[str, Union[s

# Verificando se a data já foi impressa
if data not in datas_vistas:
print("\nData:", data)
print("Diario oficial:", url)
# Adicionando a data ao conjunto de datas vistas
datas_vistas.add(data)

Expand Down Expand Up @@ -73,8 +71,6 @@ async def puxador_credito(date_range: DateRange) -> Union[List[Dict[str, Union[s
valor_limpo = valor_limpo.replace(',', '.')
# Convertendo o valor para float
valor_float = float(valor_limpo)

print(f"Decreto: {decreto}, Valor: R${valor_float:.2f}")

results.append({
"data": data,
Expand Down
Binary file added Back/__pycache__/Puxador_bens.cpython-312.pyc
Binary file not shown.
Binary file added Back/__pycache__/Puxador_compras.cpython-312.pyc
Binary file not shown.
Binary file added Back/__pycache__/Puxador_convenio.cpython-312.pyc
Binary file not shown.
Binary file added Back/__pycache__/Puxador_educacao.cpython-312.pyc
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion api/puxador_bens/routers/puxador_bens_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import date
#from Back import puxador_bens
#from ...Back import puxador_bens
from Back.puxador_bens import puxador_bens
from Back.Puxador_bens import puxador_bens


router = APIRouter(prefix="/puxador-bens")
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 2fce462

Please sign in to comment.