cola %!s(int64=2) %!d(string=hai) anos
pai
achega
eba9fd9776
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      handlers/HandlerBase.py

+ 1 - 1
handlers/HandlerBase.py

@@ -57,7 +57,7 @@ class BaseHandler(RequestHandler, DateUtils):
         print(df)
         # with open(f'./{pitcher}_{start}_{end}.csv','w',newline='') as f:
         #     f.write(df)
-        with ExcelWriter({filename}.xlsx) as ew:
+        with ExcelWriter("xxxx.xlsx") as ew:
             pd.read_csv(df).to_excel(ew,sheet_name="1",index=False)
         self.write(df)