Skip to content

Commit

Permalink
Add osmid specifically to the approved predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Sep 26, 2024
1 parent eb2942b commit c2d2260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class ApprovedPredictionsViewSet(viewsets.ModelViewSet):
def create(self, request, *args, **kwargs):
training_id = request.data.get("training")
geom = request.data.get("geom")
request.data["approved_by"] = self.request.user
request.data["approved_by"] = self.request.user.osm_id

existing_approved_feature = ApprovedPredictions.objects.filter(
training=training_id, geom=geom
Expand Down

0 comments on commit c2d2260

Please sign in to comment.