Procházet zdrojové kódy

Impresión de historial

Alejandro Rosales před 1 rokem
rodič
revize
3c60c97f6a
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      app.py

+ 3 - 1
app.py

@@ -110,8 +110,10 @@ def extract(username: str, password: str):
         # Read the HTML table into a DataFrame
         # Read the HTML table into a DataFrame
         df = pd.read_html(historial_html_io)[0]
         df = pd.read_html(historial_html_io)[0]
         
         
+        print(datos_html, historial_html)
+        
         if 'GRUPO' not in df.columns:
         if 'GRUPO' not in df.columns:
-           print(df.to_markdown(), file=sys.stderr)
+           print(df.to_markdown())
            raise KeyError("Column 'GRUPO' not found in the DataFrame")
            raise KeyError("Column 'GRUPO' not found in the DataFrame")
 
 
         # Convert the DataFrame to JSON
         # Convert the DataFrame to JSON