You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: raffle.py
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,14 @@ def gen_list(argcsv):
27
27
winlist= []
28
28
withopen(argcsv) ascsvfile:
29
29
reader=csv.DictReader(csvfile)
30
+
print(reader)
30
31
forrowinreader:
31
32
username=row['What username do you go by online?']
32
33
ifrow['What username do you go by online?'] =='-':
33
-
username=row['Ticket First Name']
34
-
winlist.append(row['Number'] +" "+username)
34
+
username=row['Ticket First Name'] +" "+row['Ticket Last Name'][0:1] +"."
35
+
num=row['Number']
36
+
winlist[num] =username
37
+
winlist.append({'id': row['Number', 'name': row['Ticket First Name'] +" "+row['Ticket Last Name'][0:1], 'uname': row['What username do you go by online?']})
0 commit comments