Skip to content

Commit

Permalink
Modify location accuracy filters
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon committed May 29, 2024
1 parent ea88644 commit 5f50e34
Show file tree
Hide file tree
Showing 2 changed files with 2,685 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def get_anyway_count():
query = query.filter(
get_expression_for_road_segment_location_fields(location_fields, AccidentMarkerView)
)
query = query.filter(AccidentMarkerView.location_accuracy.in_([1, 3, 4, 9]))
# use only location accuracy filters with the following Accurate (No.1), Road Center (No.3), KM Center (w/o not ancored No.9)
query = query.filter(AccidentMarkerView.location_accuracy.in_([1, 3, 4]))
query = query.group_by(AccidentMarkerView.provider_code, AccidentMarkerView.accident_year)
query = query.with_entities(
AccidentMarkerView.provider_code,
Expand Down
Loading

0 comments on commit 5f50e34

Please sign in to comment.