Skip to content

Commit 5ddb458

Browse files
authored
Update image.py (org_id to organization_id)
Fixed inconsistent use of organization_id filter in image.py. Since the image_bbox_check only allows organization_id to pass and throws an error on org_id, I've switched all the instances of org_id to organization_id. Previously this was done to interface.py.
1 parent 6c38a09 commit 5ddb458

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mapillary/controller/image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ def get_image_close_to_controller(
145145
# Filter using kwargs.organization_id
146146
{
147147
"filter": "organization_id",
148-
"organization_ids": kwargs["org_id"],
148+
"organization_ids": kwargs["organization_id"],
149149
}
150-
if "org_id" in kwargs
150+
if "organization_id" in kwargs
151151
else {},
152152
# Filter using kwargs.radius
153153
{
@@ -654,7 +654,7 @@ def geojson_features_controller(
654654
# Filter using filters.organization_id
655655
{
656656
"filter": "organization_id",
657-
"organization_ids": filters["org_id"],
657+
"organization_ids": filters["organization_id"],
658658
}
659659
if "organization_id" in filters
660660
else {},
@@ -826,7 +826,7 @@ def shape_features_controller(
826826
# Filter using filters.organization_id
827827
{
828828
"filter": "organization_id",
829-
"organization_ids": filters["org_id"],
829+
"organization_ids": filters["organization_ids"],
830830
}
831831
if "organization_id" in filters
832832
else {},

0 commit comments

Comments
 (0)