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

BUG: trim error when looking at docket 1219-8-19 Wncr for Jones, James #164

Open
jakedurell opened this issue Jul 29, 2021 · 2 comments
Open
Assignees

Comments

@jakedurell
Copy link
Collaborator

No description provided.

@jakedurell
Copy link
Collaborator Author

Did we fix this @doub1ejack

@jakedurell
Copy link
Collaborator Author

This seems to be a pending case issues. It picks up no counts below because there is no disposition section.

image

This bug was checked by handling null dispositions in beautifyDisposition function


` // grab the disposition section from docket
const dispositionDivs = docket
.find('[data-header-text="Dispositions"]')
.parent()
.find('.roa-section-content md-content > div');

// parse each plea event and add to offenseArray
dispositionDivs.find('.roa-event-plea-event').each(function (i) {
// parse plea information
const jqPlea = $(this);
const countText = jqPlea
.find('.roa-event-content > div > div > div:nth-child(2)')
.text()
.trim();
const countNum = parseInt(countText.substr(0, 1), 10);
const pleaDate = jqPlea.find('.roa-event-date-col').text().trim();
const decision = jqPlea
.find('.roa-event-content > div > div > div:nth-child(3)')
.text()
.trim();`

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

No branches or pull requests

2 participants