climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject [2/3] git commit: CLIMATE-400: Dropped the "data" key from the json reponse.
Date Sun, 06 Apr 2014 20:48:01 GMT
CLIMATE-400: Dropped the "data" key from the json reponse.


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/7307896f
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/7307896f
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/7307896f

Branch: refs/heads/master
Commit: 7307896f132139d7cc142f27136101ee0356aa8e
Parents: 97ef16c
Author: cgoodale <sigep311@gmail.com>
Authored: Sun Apr 6 13:32:09 2014 -0700
Committer: cgoodale <sigep311@gmail.com>
Committed: Sun Apr 6 13:32:09 2014 -0700

----------------------------------------------------------------------
 ocw-ui/backend/rcmed_helpers.py | 36 +++++++++++++++++-------------------
 1 file changed, 17 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/7307896f/ocw-ui/backend/rcmed_helpers.py
----------------------------------------------------------------------
diff --git a/ocw-ui/backend/rcmed_helpers.py b/ocw-ui/backend/rcmed_helpers.py
index 2773358..186cb9f 100644
--- a/ocw-ui/backend/rcmed_helpers.py
+++ b/ocw-ui/backend/rcmed_helpers.py
@@ -129,33 +129,31 @@ def get_parameters_bounds():
 
     .. sourcecode:: javascript
         {
-          "data": {
-            "38": {
-              "start_date": "1901-01-15",
-              "end_date": "2009-12-15",
-              "lat_max": 89.75,
-              "lat_min": -89.75,
-              "lon_max": 179.75,
-              "lon_min": -179.75
-            },
-            "39": {
-              "start_date": "1901-01-15",
-              "end_date": "2009-12-15",
-              "lat_max": 89.75,
-              "lat_min": -89.75,
-              "lon_max": 179.75,
-              "lon_min": -179.75
-            }
+          "38": {
+            "start_date": "1901-01-15",
+            "end_date": "2009-12-15",
+            "lat_max": 89.75,
+            "lat_min": -89.75,
+            "lon_max": 179.75,
+            "lon_min": -179.75
+          },
+          "39": {
+            "start_date": "1901-01-15",
+            "end_date": "2009-12-15",
+            "lat_max": 89.75,
+            "lat_min": -89.75,
+            "lon_max": 179.75,
+            "lon_min": -179.75
           }
         }
 
     '''
-    parameter_bounds = { "data": {}}
+    parameter_bounds = {}
     raw_parameters = rcmed.get_parameters_metadata()
     for parameter in raw_parameters:
         if parameter['bounding_box'] != None:
             param_id, bounds_data = extract_bounds(parameter)
-            parameter_bounds['data'][param_id] = bounds_data
+            parameter_bounds[param_id] = bounds_data
 
 
     return parameter_bounds


Mime
View raw message