Extend Requests and Update Request Statuses #549
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a CLI command called
extend_requests
to extend all "Overdue" requests for a particular agency.Example usage:
flask extend-requests --agency_ein '0056' --agency_name 'New York City Police Department (NYPD)' --user_guid 'add1c7f91d7b49c4ab4cbf70683301ab' --extension_date '03/15/2022' --extension_reason 'test reason'
Also created a CLI command called
update_request_statuses
to perform the update request statuses job as a cron job.Example crontab:
0 0 * * * source /opt/rh/rh-python35/enable && cd /vagrant && /home/vagrant/.virtualenvs/openrecords/bin/flask update-request-statuses >> /tmp/cron_output