From 5c38fc731a142ea8b98f5345a2d23bf91411f3b1 Mon Sep 17 00:00:00 2001 From: Hongbo Zeng Date: Mon, 22 Feb 2016 16:44:29 -0800 Subject: [PATCH] use the latest segment to extract metadata --- panoramix/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panoramix/models.py b/panoramix/models.py index 3f9009920873c..a09eed63d7eda 100644 --- a/panoramix/models.py +++ b/panoramix/models.py @@ -847,7 +847,7 @@ def latest_metadata(self): results = client.time_boundary(datasource=self.datasource_name) if not results: return - max_time = results[0]['result']['minTime'] + max_time = results[0]['result']['maxTime'] max_time = parse(max_time) intervals = (max_time - timedelta(seconds=1)).isoformat() + '/' intervals += (max_time + timedelta(seconds=1)).isoformat()