-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugA problem with existing functionalityA problem with existing functionality
Description
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
Reactions are currently unavailable
Metadata
Metadata
Labels
bugA problem with existing functionalityA problem with existing functionality