print # of records imported
diff --git a/plstackapi/importer/plclassic/site_importer.py b/plstackapi/importer/plclassic/site_importer.py
index c7bdf21..90ecf9b 100644
--- a/plstackapi/importer/plclassic/site_importer.py
+++ b/plstackapi/importer/plclassic/site_importer.py
@@ -13,6 +13,7 @@
self.local_sites[db_site.login_base] = db_site
sites = self.api.GetSites()
+ count = 0
for site in sites:
self.remote_sites[site['site_id']] = site
if site['login_base'] not in self.local_sites:
@@ -24,4 +25,6 @@
is_public=site['is_public'],
abbreviated_name=site['abbreviated_name'])
new_site.save()
+ count += 1
self.local_sites[new_site.login_base] = new_site
+ print "imported %s sites" % count
diff --git a/plstackapi/importer/plclassic/slice_importer.py b/plstackapi/importer/plclassic/slice_importer.py
index 4f7504d..0db9136 100644
--- a/plstackapi/importer/plclassic/slice_importer.py
+++ b/plstackapi/importer/plclassic/slice_importer.py
@@ -24,6 +24,7 @@
self.local_slices[db_slice.name] = db_slice
slices = api.GetSlices()
+ count = 0
for slice in slices:
self.remote_slice[slice['slice_id']] = slice
if slice['name'] not in self.local_slices:
@@ -35,7 +36,9 @@
slice_url = slice['url'],
site = site)
new_slice.save()
+ count += 1
self.local_slices[new_slice.name] = new_slice
+ print "Imported %s slices" % count