Skip to content

[COPA] Handle new case for log_no collisions #71

@tw-jeff-burroughs

Description

@tw-jeff-burroughs

The new case here is that it's possible to have a new row from the scraped COPA data like this:

log_no, beat, complaint_date
1234, 12, 2018-09-19

with a matching DB row that looks like this:
cr_id | beat_id | incident_date
1234 | None | None

final DB row should look like this:
cr_id | beat_id | incident_date
1234 | 12 | 2018-09-19

In this case the DB row should be updated to include the new information and a report describing this action created and saved under errors/updated_rows.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions