Skip to content

Commit

Permalink
Adaptando os arquivos para a branch:
Browse files Browse the repository at this point in the history
* Removendo os arquivos de dados pois são desnecessários
* Mudando a imagem a ser gerada pelo docker compose
* Trocando as planilhas por cópias para evitar futuros problemas
  • Loading branch information
Oesterd committed Mar 2, 2024
1 parent 636464c commit f38a554
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
Binary file removed Dados_turma.xlsx
Binary file not shown.
Binary file removed dados_teste.xlsx
Binary file not shown.
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '3'

services:
dash-la:
image: ghcr.io/oesterd/dash-la:latest
container_name: Dash-LA
dash-la-gs:
image: ghcr.io/oesterd/dash-la-gs:latest
container_name: Dash-LA-GS
restart: always
ports:
- 8050:8050
17 changes: 4 additions & 13 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@
app = Dash(__name__, use_pages=True, suppress_callback_exceptions=True)
server = app.server

Sheet_notas = '1Sb1l_sTY5Pfk1TuGzEQKsFg0rc6iSz5bLt5xjSEgaxs'
Sheet_turmas = '1I50lI9RNxU5fqiDj_vSaanVN6SORk_Oi2ODWmbn--jg'

Dados_notas = pd.read_excel(f'https://docs.google.com/spreadsheets/d/{Sheet_notas}/export?format=xlsx')
Notas_df = Dados_notas.iloc[:, 0:10]
Notas_df = Notas_df.to_dict('records')


Turmas_df = pd.read_excel(f'https://docs.google.com/spreadsheets/d/{Sheet_turmas}/export?format=xlsx')
Turmas_df = Turmas_df.to_dict('records')


page = list(dash.page_registry.values())

Expand Down Expand Up @@ -206,8 +195,8 @@
)
def gather_data(n_intervals):

Sheet_notas = '1Sb1l_sTY5Pfk1TuGzEQKsFg0rc6iSz5bLt5xjSEgaxs'
Sheet_turmas = '1I50lI9RNxU5fqiDj_vSaanVN6SORk_Oi2ODWmbn--jg'
Sheet_notas = '1v6EpUTIYBQF5Sv8lQrHKbK9IJh9mjiaXfUv3rLzliUE'
Sheet_turmas = '1ZCvar1Hb82foVQHUOMPn7z4YHmvNXICIiF0HIF3Qurk'

Dados_notas = pd.read_excel(f'https://docs.google.com/spreadsheets/d/{Sheet_notas}/export?format=xlsx')
Notas_df = Dados_notas.iloc[:, 0:10]
Expand All @@ -216,6 +205,8 @@ def gather_data(n_intervals):
Turmas_df = pd.read_excel(f'https://docs.google.com/spreadsheets/d/{Sheet_turmas}/export?format=xlsx')
Turmas_df = Turmas_df.to_dict('records')

print(Turmas_df)

return Notas_df, Turmas_df


Expand Down

0 comments on commit f38a554

Please sign in to comment.