diff --git a/app.py b/app.py index ef4c72f..fe7b619 100644 --- a/app.py +++ b/app.py @@ -60,7 +60,7 @@ def insert_alumno_extraccion(datos_html: str, materias_html: str, username_integ insert_query = """ INSERT INTO public.alumno_extraccion ("Usuario_claveULSA", datos_html, materias_html, historial_html, materias_actuales_html, updated_at) - VALUES (%s, TRIM(%s), TRIM(%s), TRIM(%s)::JSONB, TRIM(%s), NOW()) + VALUES (%s, TRIM(%s), TRIM(%s), TRIM(%s)::JSONB, TRIM(%s)::JSONB, NOW()) ON CONFLICT ("Usuario_claveULSA") DO UPDATE SET datos_html = EXCLUDED.datos_html, materias_actuales_html = EXCLUDED.materias_actuales_html, @@ -162,6 +162,9 @@ def extract(driver, username: str, password: str): historial_html_io = StringIO(f"