From b073efc6ceaeda8f491f98fe4f56653008aeeeb0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 17 Sep 2024 18:07:39 -0600 Subject: [PATCH] 2 --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index b9e735f..ef4c72f 100644 --- a/app.py +++ b/app.py @@ -162,7 +162,6 @@ def extract(driver, username: str, password: str): historial_html_io = StringIO(f"{historial_html}
") materias_html_io = StringIO(f"{materias_actuales_html}
") df = pd.read_html(historial_html_io)[0] - df_materias = pd.read_html(materias_html_io)[0] json_result = None json_materias = None @@ -171,6 +170,7 @@ def extract(driver, username: str, password: str): df['PERIODO'] = df['PERIODO'].apply(lambda x: str(x).replace('.0', '') if isinstance(x, (float, int)) else x) json_result = df[df['GRUPO'] != 'Promedio:'].to_json(orient='records') + df_materias = pd.read_html(materias_html_io)[0] json_materias = df_materias.to_json(orient='records')