storage get recent bg fixed
diff --git a/storage_api.py b/storage_api.py
index 8b3eeae..c82ae6d 100644
--- a/storage_api.py
+++ b/storage_api.py
@@ -2,6 +2,7 @@
 # from gspread import WorksheetNotFound, login
 import json
 import os
+from gspread import login
 from config import ROW_COUNT, DOCUMENT_ID, WORK_SHEET
 
 
@@ -48,6 +49,10 @@
             "": (float, float)
         }
 
+    def __str__(self):
+        return self.build + " " + self.build_type + " " + \
+        self.md5 + " " + str(self.results)
+
 
 def create_storage(url, email=None, password=None):
     u = urlparse(url)
@@ -170,10 +175,11 @@
                 m.build = d[k].pop("build_id")
                 m.build_type = d[k].pop("type")
                 m.md5 = d[k].pop("iso_md5")
-                m.results = {k: d[key] for key in d.keys()}
+                m.results = {k: v for k, v in d[k].items()}
                 result.append(m)
 
-        return d
+        return result
 
 if __name__ == "__main__":
-    create_storage("file:///home/gstepanov/bla?email=aaa.gmail.com&password=1234")
\ No newline at end of file
+    storage = create_storage("file:///home/gstepanov/rally-results-processor/sample.json", "", "")
+    print storage.recent_builds()