Skip to content

Commit 6cd5456

Browse files
authored
Merge pull request #8 from mapswipe/csv_to_txt
add output format to txt
2 parents 9f3ed95 + fc07d01 commit 6cd5456

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

update_module/update_project_contributors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ def log_project_contributors(project_id, project_contributors, output_path):
108108
if not os.path.exists(output_path + '/contributors'):
109109
os.makedirs(output_path + '/contributors')
110110

111-
filename = "{}/contributors/contributors_{}.csv".format(output_path, project_id)
111+
filename = "{}/contributors/contributors_{}.txt".format(output_path, project_id)
112+
113+
print(project_contributors)
112114

113115
with open(filename, 'a') as output_file:
114116
timestamp = int(time.time())

update_module/update_project_progress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def log_project_progress(project_id, project_progress, output_path):
186186
if not os.path.exists(output_path + '/progress'):
187187
os.makedirs(output_path + '/progress')
188188

189-
filename = "{}/progress/progress_{}.csv".format(output_path, project_id)
189+
filename = "{}/progress/progress_{}.txt".format(output_path, project_id)
190190

191191
with open(filename, 'a') as output_file:
192192

0 commit comments

Comments
 (0)