aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xckandumper8
1 files changed, 4 insertions, 4 deletions
diff --git a/ckandumper b/ckandumper
index bfb99d7..46c9a51 100755
--- a/ckandumper
+++ b/ckandumper
@@ -263,6 +263,8 @@ class CkanDumper:
stats = self.download.get(packages_downloads)
self.process_stats(stats)
+ print('Downloading contents of all packages...')
+
#
# Package contents
#
@@ -272,8 +274,6 @@ class CkanDumper:
package_file = package_folder + os.sep + 'package.json'
contents = self.load_json(package_file)
- print(f'Downloading contents of package {package}...')
-
for resource in contents['result']['resources']:
#if resource['name'] != None:
# name = resource['name']
@@ -290,8 +290,8 @@ class CkanDumper:
package_downloads.append([resource['url'], resource_file])
- stats = self.download.get(package_downloads)
- self.process_stats(stats)
+ stats = self.download.get(package_downloads)
+ self.process_stats(stats)
if __name__ == "__main__":
# Parse CLI