Skip to content
Snippets Groups Projects
Commit 450382f7 authored by anonymous's avatar anonymous
Browse files

fixes capitalization of identifiers and a wrong call to the api

parent 9a67ae51
Branches
Tags
No related merge requests found
...@@ -90,7 +90,7 @@ class Initialization(CkanCommand): ...@@ -90,7 +90,7 @@ class Initialization(CkanCommand):
odsh_harvesters = { odsh_harvesters = {
"Kiel": { "Kiel": {
'name': "Kiel", 'name': "kiel",
'url': "https://www.kiel.de/de/kiel_zukunft/statistik_kieler_zahlen/open_data/Kiel_open_data.json", 'url': "https://www.kiel.de/de/kiel_zukunft/statistik_kieler_zahlen/open_data/Kiel_open_data.json",
'source_type': "kiel", 'source_type': "kiel",
'title': "Kiel", 'title': "Kiel",
...@@ -99,12 +99,12 @@ class Initialization(CkanCommand): ...@@ -99,12 +99,12 @@ class Initialization(CkanCommand):
'frequency': "MANUAL" 'frequency': "MANUAL"
}, },
"Statistikamt-Nord": { "Statistikamt-Nord": {
'name': "Statistikamt-Nord", 'name': "statistikamt-nord",
'url': "file:///usr/lib/ckan/default/src/statistik-nord-stripped.xml", 'url': "file:///usr/lib/ckan/default/src/statistik-nord-stripped.xml",
'source_type': "statistikamt-nord", 'source_type': "statistikamt-nord",
'title': "Statistik-Nord", 'title': "Statistik-Nord",
'active': True, 'active': True,
'owner_org': "statistikamt", 'owner_org': "statistikamt-nord",
'frequency': "MANUAL" 'frequency': "MANUAL"
} }
} }
...@@ -117,7 +117,7 @@ class Initialization(CkanCommand): ...@@ -117,7 +117,7 @@ class Initialization(CkanCommand):
print(add_message) print(add_message)
harvester_dict = odsh_harvesters[harvester_key] harvester_dict = odsh_harvesters[harvester_key]
get_action('harvester_source_create')(self.create_context_with_user(), harvester_dict) get_action('harvest_source_create')(self.create_context_with_user(), harvester_dict)
else: else:
skip_message = 'Skipping creation of harvester ' skip_message = 'Skipping creation of harvester '
skip_message = skip_message + "{harvester_key}, as it's already present." skip_message = skip_message + "{harvester_key}, as it's already present."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment