Skip to content

Commit 44db630

Browse files
committed
refactor(Attributes): tile cache type is no longer needed.
1 parent f2b4d76 commit 44db630

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

app/crud/async_db/vector_tiles/nasa_viirs_fire_alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def get_aggregated_tile(
2929
"""
3030

3131
columns: List[ColumnClause] = list()
32-
attributes: List[str] = await get_attributes(SCHEMA, version, None)
32+
attributes: List[str] = await get_attributes(SCHEMA, version)
3333
for attribute in attributes:
3434
columns.append(db.column(attribute))
3535

app/crud/sync_db/tile_cache_assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_latest_versions() -> List[Dict[str, str]]:
126126
return latest_versions
127127

128128

129-
async def get_attributes(dataset, version, asset_type):
129+
async def get_attributes(dataset, version):
130130
# TODO: fetch the correct one for the current implementation
131131
# needs changes to data-api to assure dynamic vector tile caches
132132
# also have the implementation parameter in the creation options

app/routes/dynamic_vector_tiles.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from ..crud.async_db.vector_tiles.filters import geometry_filter
1818
from ..crud.sync_db.tile_cache_assets import get_attributes
1919
from ..models.enumerators.geostore import GeostoreOrigin
20-
from ..models.enumerators.tile_caches import TileCacheType
2120
from ..models.types import Bounds
2221
from ..responses import VectorTileResponse
2322
from . import dynamic_vector_tile_cache_version_dependency, vector_xyz
@@ -61,9 +60,7 @@ async def dynamic_vector_tile(
6160
if geom_filter is not None:
6261
filters.append(geom_filter)
6362

64-
attributes: List[str] = await get_attributes(
65-
dataset, version, TileCacheType.dynamic_vector_tile_cache
66-
)
63+
attributes: List[str] = await get_attributes(dataset, version)
6764

6865
# if no attributes specified get all feature info fields
6966
if not include_attribute:

0 commit comments

Comments
 (0)