Skip to content

Commit f7d7227

Browse files
committed
changed csv from comma separated to semicolon separated, which makes it easier to copy and paste them into an email client and have each recognized as an email address
1 parent b2c6dd8 commit f7d7227

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/elekto_emails.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
it attempts to find an email address from the most recent commit. If the
3434
email contains the string 'noreply' it is not written to the csv file.
3535
36-
As output, a csv file of this format containing comma separated email addresses
37-
is created:
36+
As output, a csv file of this format containing semicolon separated email addresses
37+
is created (semincolon separated allows for easy copy / paste into your email client):
3838
elekto_emails_YYYYMMDD.csv
3939
4040
Each email address found is printed to the screen as a way to indicate progress,
@@ -215,11 +215,11 @@ def get_email(username, api_token):
215215
today = datetime.today().strftime('%Y-%m-%d')
216216
outfile_name = 'elekto_emails_' + today + '.csv'
217217
f = open(outfile_name,'w')
218-
csv_file = csv.writer(f)
218+
csv_file = csv.writer(f, delimiter =';')
219219

220220
# Print status and write emails to the csv file.
221221
print("Found emails for", found_count, "out of", len(voter_list), "voters")
222222
print("Your results can be found in", outfile_name)
223223

224224
csv_file.writerow(email_list)
225-
f.close()
225+
f.close()

0 commit comments

Comments
 (0)