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

Replace oscn with courtbot on courtbot-python #1

Open
syk1112 opened this issue Sep 21, 2020 · 0 comments
Open

Replace oscn with courtbot on courtbot-python #1

syk1112 opened this issue Sep 21, 2020 · 0 comments

Comments

@syk1112
Copy link

syk1112 commented Sep 21, 2020

About this Issue

Here are all the ways oscn library is used on the codefortulsa/courtbot-python:
Used in api/views.py
Get case using:

  case = oscn.request.Case(year='2018', number=case_num)

Get araignment event from the case using:

  find_arraignment_or_return_False(case.events)
  which checks for `"arraignment"` in `event.Docket.lower()`

Get eligible jurisdictions using:

  oscn.Counties

Get datetime of the event's arraignment date:

  # where event = arraignment_event.Event
  event = event.replace('ARRAIGNMENT', '').rstrip()
  return datetime.strptime(event, "%A, %B %d, %Y at %I:%M %p")

We should replace these references to oscn to the new courtbot library.

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

1 participant