public-law / open-gov-crawlers

Parse government documents into well formed JSON
66 stars 5 forks source link

Fix: Colorado "duplicate" Articles #178

Open dogweather opened 1 year ago

dogweather commented 1 year ago

E.g.:

Error importing Article(40, Public Agencies - Organizing for Conservation) in Title 37: PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_statutes_on_citation_and_year_and_publication_id"
  13   │ DETAIL:  Key (citation, year, publication_id)=(C.R.S. Title 37 Article 40, 2022, 10) already exists.
dogweather commented 1 year ago

This must be a straight-up parse error. There's just one Article in the source document.

dogweather commented 1 year ago

Maybe: