Describe the bug
See title. In particular, the line below throws a ValueError due to attempting to filter Email results by None when --before-date isn't set.
https://github.com/UCF/PostMaster/blob/master/manager/management/commands/export-data.py#L193
Steps to Reproduce
- Run
python manage.py export-data --email="..."
- Wait a while
- Sadtimes
Expected Behavior
Because --before-date isn't a required param, I expect to be able to run the command without passing this param in, and have the command execute successfully.
Possible Fix
Set a default of the current date on self.before if --before-date is None?
Your environment:
n/a
Additional context
n/a
Describe the bug
See title. In particular, the line below throws a ValueError due to attempting to filter Email results by
Nonewhen--before-dateisn't set.https://github.com/UCF/PostMaster/blob/master/manager/management/commands/export-data.py#L193
Steps to Reproduce
python manage.py export-data --email="..."Expected Behavior
Because
--before-dateisn't a required param, I expect to be able to run the command without passing this param in, and have the command execute successfully.Possible Fix
Set a default of the current date on
self.beforeif--before-dateis None?Your environment:
n/a
Additional context
n/a