2
This commit is contained in:
2
app.py
2
app.py
@@ -162,7 +162,6 @@ def extract(driver, username: str, password: str):
|
||||
historial_html_io = StringIO(f"<table>{historial_html}</table>")
|
||||
materias_html_io = StringIO(f"<table>{materias_actuales_html}</table>")
|
||||
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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user