Update select_question.py
Browse files- select_question.py +4 -5
select_question.py
CHANGED
@@ -70,8 +70,7 @@ def create_choice_question(csv_file):
|
|
70 |
# cp932で保存、エラーは無視(置換しても良い)
|
71 |
result_df.to_csv(tmp.name, index=False, encoding='cp932', errors='ignore')
|
72 |
output_path = tmp.name
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
return new_path
|
|
|
70 |
# cp932で保存、エラーは無視(置換しても良い)
|
71 |
result_df.to_csv(tmp.name, index=False, encoding='cp932', errors='ignore')
|
72 |
output_path = tmp.name
|
73 |
+
# ファイル名を変更
|
74 |
+
new_path = os.path.join(os.path.dirname(output_path), "output.csv")
|
75 |
+
os.rename(output_path, new_path)
|
76 |
+
return new_path
|
|