From 4b10b2713fb9138b1d15ffdaca0e9def277d110e Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Mon, 30 Sep 2024 14:29:19 -0400 Subject: [PATCH] Rename pk to id in get_vector_tile --- uvdat/core/rest/map_layers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uvdat/core/rest/map_layers.py b/uvdat/core/rest/map_layers.py index d91abee1..fbdf3c75 100644 --- a/uvdat/core/rest/map_layers.py +++ b/uvdat/core/rest/map_layers.py @@ -108,7 +108,7 @@ def retrieve(self, request, *args, **kwargs): url_path=r'tiles/(?P\d+)/(?P\d+)/(?P\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, @@ -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()