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: generate_directory.py3
+60-36
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ DataRow = namedtuple(
16
16
[
17
17
'ttimestamp',
18
18
'email',
19
-
'name',
19
+
'fullname',
20
20
'facebook',
21
21
'linkedin',
22
22
'twitter',
@@ -59,21 +59,40 @@ DataRow = namedtuple(
59
59
60
60
"""
61
61
Loads a manual blacklist from 'blacklist.csv' for people who have been having problems with their profile pictures. Reason is that people without images must appear at the end of the website, otherwise it looks bad.
print("INFO: blacklist.csv file not found.", file=sys.stderr)
74
83
returnblacklist
75
84
76
85
86
+
# Todo: try to minimeze collisions, somehow...
87
+
defis_blacklisted(blacklist, person_tuple):
88
+
if (person_tuple.emailinblacklist):
89
+
returnTrue
90
+
91
+
if (person_tuple.fullnameinblacklist):
92
+
returnTrue
93
+
94
+
returnFalse
95
+
77
96
"""
78
97
Loads a CSV file that contains <URL_FROM>,<URL_TO> for people who are having troubles getting the URL right, and the logic in this script deson't solve it
<atarget="_blank" title="find us on Facebook" href="https://www.facebook.com/NYUADHackathon/"><imgalt="find us on facebook" src="https://drive.google.com/uc?export=view&id=1q_o4Xt0lvIY37HpPypU9oa1z-pef7G6D" border=0></a>
149
154
<atarget="_blank" title="follow me on twitter" href="https://twitter.com/NYUADHackathon"><imgalt="follow me on twitter" src="https://drive.google.com/uc?export=view&id=1EW7TMi5c0dVdiGWruKSP2QEq9AKL5isR" border=0></a>
@@ -160,8 +165,8 @@ <h1 align="center">Meet the <a href="http://sites.nyuad.nyu.edu/hackathon/">2022
0 commit comments