mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 06:01:51 +09:00
수정/test 완료
This commit is contained in:
parent
e9c59ae6f6
commit
526ab3c3f6
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# save as data/report.csv
|
||||
import os
|
||||
import csv
|
||||
from typing import List, Dict, Any
|
||||
|
||||
|
|
@ -6,6 +7,8 @@ from typing import List, Dict, Any
|
|||
|
||||
# file path는 'data/report.csv'로 고정
|
||||
def save_report(report_data: List[Dict[str, Any]], file_path: str = 'data/report.csv') -> None:
|
||||
os.makedirs(os.path.dirname(file_path), exist_ok=True)
|
||||
|
||||
"""
|
||||
Save the report data to a CSV file.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue