This ticket is split into frontend and backend, so make sure that the Label of this issue is the one that applies to you.
Context:
Currently, a user is not given the choice as to how frequently they receive alerts--every time a new report is made, a new email is sent. This is perfectly fine for some people, however, others may see it as spam and want to unsubscribe which, of course, is not ideal. As such, we need to consider allowing users to choose the frequency when they fill out the 'Subscribe to the Mailing List' form.
To-do:
[ ] Add a field entitled emailFrequency to the database of emails
Do this when a new table is being created as well as when information is being inserted into the table
[ ] Update the POST request in views.py for the email page to get the emailFrequency from the front-end form. The 'id' of the input should be emailFrequency,
Context: Currently, a user is not given the choice as to how frequently they receive alerts--every time a new report is made, a new email is sent. This is perfectly fine for some people, however, others may see it as spam and want to unsubscribe which, of course, is not ideal. As such, we need to consider allowing users to choose the frequency when they fill out the 'Subscribe to the Mailing List' form.
To-do:
emailFrequency
to the database of emailsviews.py
for the email page to get the emailFrequency from the front-end form. The 'id' of the input should be emailFrequency,