Allow returning `appeal_from`
In Courtlistener's Docket object we have this field
appeal_from = models.ForeignKey(
"Court",
help_text=(
"In appellate cases, this is the lower court or "
"administrative body where this case was originally heard. "
"This field is frequently blank due to it not being "
"populated historically or due to our inability to "
"normalize the value in appeal_from_str."
),
related_name="+",
on_delete=models.RESTRICT,
blank=True,
null=True,
)
In more scrapers, we are starting to parse "lower court" information. Currently, we can only return the name as a string, but in some cases, such as recently merged tex, we know the "lower court id", so we can send the right value from the scraper instead of having to do string analysis on Courtlistener
In tex, we know if the lower court is texapp or ca5
https://github.com/freelawproject/juriscraper/blob/3be68020c222ff22df2c20e487c779cd540703d2/juriscraper/opinions/united_states/state/tex.py#L152-L160
This will need an integration PR in CL
This is also possible for bap1. I would need confirmation that , for example,
- "USBC - District of New Hampshire" is
nhb - "USBC - District of Massachusetts (Worcester)" is
mab
etc
https://github.com/freelawproject/juriscraper/blob/841b7fed7010410163fe79972aa0868019b62391/juriscraper/opinions/united_states/federal_bankruptcy/bap1.py#L24-L39