Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<br id="topo">

# <p align = "center"> API - 1° Semestre - Banco de Dados 2023
# <p align = "center"> API - 1° Semestre - Banco de Dados 2023 - MINHA ALTERAÇÃO
<p align="center"><img src="https://github.com/Porygon-Users/API-Porygon/assets/145280630/8c66b2a8-7371-4ede-b323-05caf21f7914" alt="Capa" style="width:700px;height:400px;"></p>


Expand Down
4 changes: 4 additions & 0 deletions database/relatorio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
import pandas as pd
import plotly.express as px



print("Iniciando o aplicativo de relatórios...")

# Função para carregar os dados do arquivo Excel
def carregar_dados_excel():
excel_file = pd.ExcelFile("infodados.xlsx")
Expand Down
2 changes: 1 addition & 1 deletion menu/cadastro.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ def cadastrar_usuario(planilha, funcao, ids_usados):
else:
print("Opção inválida. Tente novamente.")
continue

arquivo_excel.save(caminho_arquivo_excel)
arquivo_excel.close()
2 changes: 2 additions & 0 deletions menu/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
from openpyxl.utils import get_column_letter
from datetime import datetime, timedelta
from openpyxl import load_workbook
from tabulate import tabulate

#Obtenha o diretório atual em que o script Python está sendo executado
diretorio_atual = os.path.dirname(os.path.abspath(__file__ ))
print(diretorio_atual)

#Construa o caminho completo para o arquivo Excel no diretório 'database'
caminho_arquivo_excel = os.path.join(diretorio_atual, '..', 'database', 'infodados.xlsx')
Expand Down