aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Roman2019-10-07 18:49:49 +0300
committerTudor Roman2019-10-07 18:49:49 +0300
commit01f0e32b1caa7ebd0b7594bb76e30dd76bf6f8d4 (patch)
treeb0976e33b0ce50e5f95c774b0c0c05d47a0fa0df
parentfc0db8c2a6ebf84775c04e962055966385bccc62 (diff)
downloadrmi_scripts-01f0e32b1caa7ebd0b7594bb76e30dd76bf6f8d4.tar.gz
rmi_scripts-01f0e32b1caa7ebd0b7594bb76e30dd76bf6f8d4.zip
make add_participations work
-rwxr-xr-xadd_participations2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_participations b/add_participations
index 4b5166b..24ef71d 100755
--- a/add_participations
+++ b/add_participations
@@ -30,7 +30,7 @@ with open(sys.argv[1]) as file:
call(['cmsAddParticipation', '-c', contest_id, '-t', row['team_id'], '-p', password, row['username']])
users.append(User(row['username'], password))
-with open(sys.argv[3]) as out_file:
+with open(sys.argv[3], 'w') as out_file:
writer = csv.writer(out_file)
writer.writerow(['username', 'password'])
for u in users: