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

Add script to find lengths of section.name and subsection.name values #112

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

pcraig3
Copy link
Collaborator

@pcraig3 pcraig3 commented Dec 11, 2024

Summary

I don't know if we really need this for much but it's not really hurting anything.

Added a new Django command to pull down sections and subsections from non-archived NOFOs and to export them to a spreadsheet.

It lives in the folder with our other commands.

Run it with:

poetry run python manage.py section_lengths --all

Or

poetry run python manage.py section_lengths --nofo-id 1

@pcraig3 pcraig3 changed the title Add a new script that finds the lengths of sections and subsections Add a new script that finds the lengths of all section.name and subsection.names Dec 11, 2024
@pcraig3 pcraig3 changed the title Add a new script that finds the lengths of all section.name and subsection.names Add a new script to find lengths of section.name and subsection.name values Dec 11, 2024
@pcraig3 pcraig3 changed the title Add a new script to find lengths of section.name and subsection.name values Add script to find lengths of section.name and subsection.name values Dec 11, 2024
Copy link
Collaborator

@jtmst jtmst left a comment

Choose a reason for hiding this comment

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

The section/subsection loops could be a concern if we had millions of them, but thats not an issue at the moment

@pcraig3 pcraig3 merged commit a9f02d3 into main Dec 13, 2024
4 checks passed
@pcraig3 pcraig3 deleted the add-section-lengths-script branch December 13, 2024 15:02
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