Andy Mikhailenko  committed 3ccc011

etl_hamster: use our storage API instead of the Hamster's native one (it was broken recently)

  • Participants
  • Parent commits 1945028
  • Branches default

Comments (0)

Files changed (1)


 from collections import defaultdict, OrderedDict
 from functools import partial
-from hamster.client import Storage
+from import get_facts_for_day
 import pymongo
 import yaml
 #--- Extractors
 def get_facts():
-    storage = Storage()
     end_date =
     start_date = datetime.datetime(2000,1,1) #end_date - datetime.timedelta(days=2)
-    facts = storage.get_facts(date=start_date, end_date=end_date)
+    facts = get_facts_for_day(date=start_date, end_date=end_date)
     return facts