05094090af
The CKAN logic uses integers when dealing with the API version, e.g. making checks which API version is in use. Currently, the harvester uses strings to identify the API version. Instead of dealing with type conversion the harvester could use integers directly. This commit fixes okfn/ckanext-harvest#36. When the API version is parsed from the configuration it is passed through the int() function. This way the harvesting will still work even if a harvest source was configured with a string API version which makes this commit backward compatible. Signed-off-by: Konrad Reiche <konrad.reiche@fokus.fraunhofer.de> |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
ckanharvester.py |