From 6db02bdfd0cf36a32b91c818d19e8024b625be09 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Thu, 30 Aug 2018 09:39:16 +0100
Subject: [PATCH] remove spurious print statements

---
 opentech/public/news/management/commands/migrate_news.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/opentech/public/news/management/commands/migrate_news.py b/opentech/public/news/management/commands/migrate_news.py
index a2773c86d..c1d6357b7 100644
--- a/opentech/public/news/management/commands/migrate_news.py
+++ b/opentech/public/news/management/commands/migrate_news.py
@@ -74,7 +74,6 @@ class Command(BaseCommand):
         # TODO timezone?
         news.submit_time = datetime.fromtimestamp(int(node['created']), timezone.utc)
         news.publication_date = datetime.fromtimestamp(int(node['created']), timezone.utc)
-        print(news.publication_date)
 
         news.title = node['title']
 
@@ -120,7 +119,7 @@ class Command(BaseCommand):
                     author=PersonPage.objects.get(title=name)
                 ))
             except PersonPage.DoesNotExist:
-                print(f'missing person page: {name}')
+                self.stdout.write(f'Missing person page: {name}')
 
         try:
             if not news.get_parent():
-- 
GitLab