Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat/add-user-in-ap…
Browse files Browse the repository at this point in the history
…proved-prediction
  • Loading branch information
kshitijrajsharma committed Sep 26, 2024
2 parents 86acf7e + 3a8bec2 commit 47bf153
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 47bf153

Please sign in to comment.