aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-16 14:00:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-16 14:00:08 -0300
commite239d30f713db3fecd44b7f96484dda03d29c85b (patch)
tree4a81b28edb4ecb2d28d9a4b5ab36b7780f6f5514
parent33b36b739e93f9c43c67e34d4fb753d6ac53fff3 (diff)
downloadckandumper-e239d30f713db3fecd44b7f96484dda03d29c85b.tar.gz
ckandumper-e239d30f713db3fecd44b7f96484dda03d29c85b.tar.bz2
Minor fix
-rwxr-xr-xckandumper8
1 files changed, 4 insertions, 4 deletions
diff --git a/ckandumper b/ckandumper
index e85b15d..7915c3b 100755
--- a/ckandumper
+++ b/ckandumper
@@ -270,15 +270,15 @@ class CkanDumper:
self.process_stats(stats)
print('Downloading contents of all packages...')
+ package_downloads = []
#
# Package contents
#
for package in packages['result']:
- package_downloads = []
- package_folder = self.dest + os.sep + 'packages' + os.sep + package
- package_file = package_folder + os.sep + 'package.json'
- contents = self.load_json(package_file)
+ package_folder = self.dest + os.sep + 'packages' + os.sep + package
+ package_file = package_folder + os.sep + 'package.json'
+ contents = self.load_json(package_file)
for resource in contents['result']['resources']:
#if resource['name'] != None: