diff --git a/.gitignore b/.gitignore index ababfa2..de6b23f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ B.Y.T.E Club Form (Responses).xlsx firebase.json env/ __pycache__/ -body.html \ No newline at end of file +body.html +add_cabinet.py \ No newline at end of file diff --git a/csv_dataproc.py b/csv_dataproc.py index 8a0f9b2..b1410a6 100644 --- a/csv_dataproc.py +++ b/csv_dataproc.py @@ -23,10 +23,10 @@ name_arr[-1], row['What is your CityMail?'], row['if you prefer we contact your personal email, please put it here'], - (row['if you prefer we contact your personal email, please put it here']!=None), + pd.notna(row['if you prefer we contact your personal email, please put it here']), #had to use gpt :( False, #active bool. by default is false for all members. - row["What's your discord?"], - row['What is your CityMail?'] + row['What is your EMPLID'], + row["What's your discord?"] ) db.add(new_person) diff --git a/todo.md b/todo.md index aa07d21..da33802 100644 --- a/todo.md +++ b/todo.md @@ -7,23 +7,25 @@ - [x] add database table for cabinet members - [ ] expand server to send selective emails - [x] creat git hook to update req.txt whenever env changes -- [ ] refactor email_client to allow for null body +- [x] refactor email_client to allow for null body - [x] Database.get should only return preferred email - [x] Create wrapper function that sends emails via arguements - [x] Create simple way to store and update email body, subject and candidates - [x] Write tests -- [ ] Fix cascade of deletes and updates. Requires implementation of foreign keys for cabinet and blacklist tables +- [x] Fix cascade of deletes and updates. Requires implementation of foreign keys for cabinet and blacklist tables +- [ ] add project to the byte ccny website project db +- [ ] expand current db to fall 2024 applicants ## Jawad - [x] test the delete operation (why is it not working) -- [ ] add current alumni to db -- [ ] add blacklist to db +- [x] add current alumni to db +- [x] add blacklist to db ## Fahad - [x] CLI arguments - [x] subject taken from CLI - [x] add the HTML functionality (grab the body.html file as the main body) -- [ ] update readme +- [x] update readme - [ ] expand tests - [ ] fix github action - [x] add database function to mark everyone/ specific persion as inactive \ No newline at end of file