Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Requests and Update Request Statuses #549

Merged
merged 2 commits into from
Feb 15, 2022
Merged

Conversation

johnyu95
Copy link
Contributor

@johnyu95 johnyu95 commented Feb 15, 2022

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

Copy link
Contributor

@zgary zgary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@zgary zgary merged commit 01a2544 into main Feb 15, 2022
@lgtm-com
Copy link

lgtm-com bot commented Feb 15, 2022

This pull request introduces 3 alerts when merging 6b863de into 44a14fd - view on LGTM.com

new alerts:

  • 2 for Unused import
  • 1 for Potentially unsafe external link

@zgary zgary deleted the johnyu95-extend-requests branch February 15, 2022 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants