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

997 fix zoning hyperlinks c3 #1028

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

allthesignals
Copy link
Collaborator

Closes #997

Centralizes zoning district link (dcp website) generation logic into the zoning district model. Before, it was split out into multiple places.

The tax lot model now imports that logic from the zoning district model.

Also, before, primaryzone was the name used to build the DCP zoning district. This isn't really what it is... it applies logic to generate links from a given zonedist into idiosyncratic dcp website URLs.

As for the original bug... the lookup was case sensitive. So, it wasn't able to apply the link-generation logic. For example, "C2" is not "c2". This PR adds some case insensitive string comparison.

@allthesignals allthesignals requested a review from a team as a code owner October 26, 2021 20:43
… Refactor function to work with all zoning codes;
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.

Update zoning hyperlinks for sections of DCP website
1 participant