From 5be945abaee36a4f13f7457fd8829e5d1890e7a2 Mon Sep 17 00:00:00 2001 From: longfengpili <398745129@qq.com> Date: Wed, 10 Jul 2024 16:33:54 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]to=5Fcsv=20columns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pydbapi/model/resmodel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydbapi/model/resmodel.py b/pydbapi/model/resmodel.py index e32e23b..2fefab5 100644 --- a/pydbapi/model/resmodel.py +++ b/pydbapi/model/resmodel.py @@ -2,7 +2,7 @@ # @Author: longfengpili # @Date: 2024-07-09 14:05:19 # @Last Modified by: longfengpili -# @Last Modified time: 2024-07-10 11:45:59 +# @Last Modified time: 2024-07-10 16:32:14 # @github: https://github.com/longfengpili @@ -56,7 +56,7 @@ def to_dataframe(self): def to_csv(self, fpath: str): with Path(fpath).open(mode='w', newline='', encoding='utf-8') as f: writer = csv.writer(f) - writer.writerow(self.cols) + writer.writerow(self.cols.all_cols) writer.writerows(self.values) def to_insert_values(self):