diff --git a/core/management/commands/addWCdata.py b/core/management/commands/addWCdata.py index 5de3387..36fbda8 100644 --- a/core/management/commands/addWCdata.py +++ b/core/management/commands/addWCdata.py @@ -30,9 +30,6 @@ class Command(BaseCommand): help = 'Load data from example site https://woo.enreda.coop/ ' def handle(self, *args, **kwargs): - print("Deleting existing Product instances") - Product.objects.all().delete() - print("Migrate data from Enreda WooCommerce...\n") # find or create company instance enreda, created = Company.objects.get_or_create(company_name='enreda', web_link=self.url) diff --git a/utils/woocommerce.py b/utils/woocommerce.py index d925389..349da8e 100644 --- a/utils/woocommerce.py +++ b/utils/woocommerce.py @@ -105,7 +105,6 @@ def migrate_shop_products(url, key, secret, version="wc/v3"): logging.error(f"Could not create product instance: {str(e)}") continue try: - # import ipdb; ipdb.set_trace() # get image headers={ "User-Agent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"