Skip to content

Commit 7945125

Browse files
authored
Update counting-org.py
1 parent 99b6870 commit 7945125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

counting-org.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
pieces = line.split()
2222
email = pieces[1]
2323
parts = email.split('@')
24-
org = parts[1]
24+
org = parts[-1] # reading the last element of the list
2525
print org
2626
# question maker is a place holder to be filled in
2727
cur.execute('SELECT count FROM Counts WHERE org = ? ', (org, ))

0 commit comments

Comments
 (0)