Skip to content

Commit

Permalink
Merge pull request #3207 from Geoportail-Luxembourg/fix_time_override
Browse files Browse the repository at this point in the history
Allow to override the step in this time notation
  • Loading branch information
rmichaelis authored Dec 10, 2024
2 parents 307ca25 + 45687c4 commit 64cfe58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions geoportal/geoportailv3_geoportal/views/luxthemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ def _merge_time(time_, layer_theme, layer, wms):
timepositions[0][:-1]
+ wms_obj.get("default_timestep", 'PT600S')
)
if len(timepositions) == 1:
tp = timepositions[0].split("/")
if len(tp) == 3:
tp[2] = wms_obj.get("default_timestep", tp[2])
timepositions[0] = "/".join(tp)
wms_obj["timepositions"] = timepositions
extent = parse_extent(
wms_obj["timepositions"],
wms_obj.get("defaulttimeposition", None)
Expand Down

0 comments on commit 64cfe58

Please sign in to comment.