Skip to content

Commit

Permalink
Merge pull request #860 from grossir/fix_colo_citation
Browse files Browse the repository at this point in the history
fix(colo): add Citation type
  • Loading branch information
flooie authored Jan 12, 2024
2 parents 9967681 + 149d56a commit 10fa0c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion juriscraper/opinions/united_states/state/colo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.court_id = self.__module__
self.status = "Published"
self.url = f"https://www.courts.state.co.us/Courts/Supreme_Court/Proceedings/Index.cfm"
self.url = "https://www.courts.state.co.us/Courts/Supreme_Court/Proceedings/Index.cfm"

def _process_html(self):
""""""
Expand Down Expand Up @@ -113,6 +113,7 @@ def extract_from_text(self, scraped_text: str) -> Dict[str, Any]:
"volume": vol,
"reporter": reporter,
"page": page,
"type": 8, # NEUTRAL in courtlistener Citation model
},
}
return {}
1 change: 1 addition & 0 deletions tests/local/test_ScraperExtractFromTextTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class ScraperExtractFromText(unittest.TestCase):
"volume": "2023",
"reporter": "CO",
"page": "63",
"type": 8,
}
},
),
Expand Down

0 comments on commit 10fa0c7

Please sign in to comment.