1. okfn
  2. wdmmg-ext


pudo  committed f8d7ae4

[load] refactor israel loader to support new loader syntax

  • Participants
  • Parent commits 94865e8
  • Branches default

Comments (0)

Files changed (1)

File wdmmgext/load/israel.py

View file
     # Make a suitably configured Loader (this also creates the Dataset).
-    loader = Loader(DATASET_NAME, "Israel budget",
+    loader = Loader(DATASET_NAME, ["name"], "Israel budget",
         description = u'''Israeli budget.''', currency=u'ils')
     def describe_dimension(key, label, description=None):
             loader.classify_entry(e, level2, 'entity')
             loader.classify_entry(e, level3, 'programme')
             loader.classify_entry(e, level4, 'concept')
-            loader.create_entry({'name': e.get('name')}, **e)
+            loader.create_entry(**e)
     loader.create_view(Dataset, {'name': DATASET_NAME},