Skip to content

Commit

Permalink
Update xcube/webapi/statistics/controllers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Norman Fomferra <norman.fomferra@brockmann-consult.de>
  • Loading branch information
b-yogesh and forman authored Sep 12, 2024
1 parent 7b0b76b commit dd98ae7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xcube/webapi/statistics/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ def _compute_statistics(
dataset = ml_dataset.get_dataset(0)
grid_mapping = ml_dataset.grid_mapping

dataset_contains_time = False

if "time" in dataset:
dataset_contains_time = True
dataset_contains_time = "time" in dataset

if dataset_contains_time:
if time_label is not None:
Expand Down

0 comments on commit dd98ae7

Please sign in to comment.