Skip to content

Commit

Permalink
[修复]to_csv columns
Browse files Browse the repository at this point in the history
  • Loading branch information
longfengpili committed Jul 10, 2024
1 parent 60880e6 commit 5be945a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydbapi/model/resmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 5be945a

Please sign in to comment.