Skip to content

Commit

Permalink
Adicionando o intervalo2 no callback das páginas 4 e 5 e removendo a …
Browse files Browse the repository at this point in the history
…mensagem de erro
  • Loading branch information
Oesterd committed Mar 6, 2024
1 parent 993afe4 commit a07186d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ def gather_data(n_intervals):
Turmas_df = read_data(ID_turmas, Turmas_sheet)
Turmas_df['Turma'] = pd.to_datetime(Turmas_df['Turma'], format='%Y/%m')
Turmas_df['Turma'] = Turmas_df['Turma'].dt.date
print(Turmas_df['Turma'])
Turmas_df = Turmas_df.to_dict('records')

return Notas_df, Turmas_df
Expand Down Expand Up @@ -280,4 +279,4 @@ def drawer_demo(opened, width):


if __name__ == "__main__":
app.run(debug=True, host="localhost")
app.run(debug=False, host="0.0.0.0")
3 changes: 2 additions & 1 deletion src/pages/pg4.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@
#--------------------------------------------------------------------------
@callback(
Output('grid3', 'rowData'),
Input(component_id='Intervalo2', component_property='n_intervals'),
Input('Dados_turmas', 'data'),
Input(component_id='Mdropdown41', component_property='value'),
Input(component_id='Mdropdown42', component_property='value'),
)


def Grid_maker(data, mdrop1, mdrop2):
def Grid_maker(n, data, mdrop1, mdrop2):
dff = pd.DataFrame(data)


Expand Down
3 changes: 2 additions & 1 deletion src/pages/pg5.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@
#-----------------------------------------------------------------------------------------------------
@callback(
Output('grid4', 'rowData'),
Input(component_id='Intervalo2', component_property='n_intervals'),
Input('Dados_turmas', 'data'),
Input(component_id='Mdropdown51', component_property='value'),
Input(component_id='Mdropdown52', component_property='value'),
)


def Grid_maker(data, mdrop1, mdrop2):
def Grid_maker(n, data, mdrop1, mdrop2):
dff = pd.DataFrame(data)


Expand Down

0 comments on commit a07186d

Please sign in to comment.