Skip to content

Commit

Permalink
Rename pk to id in get_vector_tile
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Sep 30, 2024
1 parent ea5ff03 commit 4b10b27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvdat/core/rest/map_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def retrieve(self, request, *args, **kwargs):
url_path=r'tiles/(?P<z>\d+)/(?P<x>\d+)/(?P<y>\d+)',
url_name='tiles',
)
def get_vector_tile(self, request, x: str, y: str, z: str, pk: str):
def get_vector_tile(self, request, id: str, x: str, y: str, z: str):
with connection.cursor() as cursor:
cursor.execute(
VECTOR_TILE_SQL,
Expand All @@ -117,7 +117,7 @@ def get_vector_tile(self, request, x: str, y: str, z: str, pk: str):
'x': x,
'y': y,
'srid': 3857,
'map_layer_id': pk,
'map_layer_id': id,
},
)
row = cursor.fetchone()
Expand Down

0 comments on commit 4b10b27

Please sign in to comment.