File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -629,14 +629,18 @@ def get_layer_from_collections( # noqa: C901
629629 tms_id : None for tms_id in tilematrixsets
630630 }
631631
632- if ("cube:dimensions" in collection .extra_fields
633- and "time" in collection .extra_fields ["cube:dimensions" ]):
632+ if (
633+ "cube:dimensions" in collection .extra_fields
634+ and "time" in collection .extra_fields ["cube:dimensions" ]
635+ ):
634636 layer ["time" ] = [
635637 python_datetime .datetime .strptime (
636638 t ,
637639 "%Y-%m-%dT%H:%M:%SZ" ,
638640 ).strftime ("%Y-%m-%d" )
639- for t in collection .extra_fields ["cube:dimensions" ]["time" ]["values" ]
641+ for t in collection .extra_fields ["cube:dimensions" ]["time" ][
642+ "values"
643+ ]
640644 ]
641645 elif intervals := temporal_extent .intervals :
642646 start_date = intervals [0 ][0 ]
@@ -1157,7 +1161,9 @@ def web_map_tile_service( # noqa: C901
11571161
11581162 colormap = get_dependency_params (
11591163 dependency = self .colormap_dependency ,
1160- query_params = {"colormap" : req ["colormap" ]} if "colormap" in req else layer .get ("render" ) or {},
1164+ query_params = {"colormap" : req ["colormap" ]}
1165+ if "colormap" in req
1166+ else layer .get ("render" ) or {},
11611167 )
11621168
11631169 content , media_type = render_image (
You can’t perform that action at this time.
0 commit comments