Last active
October 30, 2017 23:09
-
-
Save bengolder/ec437271f0ea5f3050b15ba3082ff983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open with ./manage.py shell_plus | |
from intake.tests.factories import FormSubmissionWithOrgsFactory | |
from intake.services import pdf_service | |
# this may cause memory issues with less apps than 100 | |
test_app_count = 100 | |
sf = Organization.objects.get(slug='sf_pubdef') | |
for i in range(test_app_count): | |
sub = FormSubmissionWithOrgsFactory(organizations=[sf]) | |
# create the pre-filled pdf for this individual app | |
# if this is not run, the bundle update will send many alerts | |
# about missing pre-filled pdfs | |
pdf_service.fill_pdf_for_application(sub.applications.first().id) | |
# rebuild the giant concatenated pdf for sf | |
pdf_service.update_pdf_bundle_for_san_francisco() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment