diff --git a/Dados_turma.xlsx b/Dados_turma.xlsx deleted file mode 100644 index 5deca65..0000000 Binary files a/Dados_turma.xlsx and /dev/null differ diff --git a/dados_teste.xlsx b/dados_teste.xlsx deleted file mode 100644 index 8e75765..0000000 Binary files a/dados_teste.xlsx and /dev/null differ diff --git a/docker-compose.yaml b/docker-compose.yaml index f9630af..f6784c2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 \ No newline at end of file diff --git a/src/app.py b/src/app.py index e2f9c48..6de65c5 100644 --- a/src/app.py +++ b/src/app.py @@ -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()) @@ -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] @@ -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