From 43efeb90218555919fe6204e91bb130118b86499 Mon Sep 17 00:00:00 2001 From: Jacob Hilker Date: Wed, 12 Mar 2014 16:19:59 -0400 Subject: [PATCH] cleanup conversion script --- .../commands/convert_notes_to_markdown.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/karmaworld/apps/notes/management/commands/convert_notes_to_markdown.py b/karmaworld/apps/notes/management/commands/convert_notes_to_markdown.py index 6d98008..3ab4648 100644 --- a/karmaworld/apps/notes/management/commands/convert_notes_to_markdown.py +++ b/karmaworld/apps/notes/management/commands/convert_notes_to_markdown.py @@ -36,26 +36,5 @@ class Command(BaseCommand): converted_notes += 1 print 'Processed {n}'.format(n=note) - """if not note.static_html: - # no HTML to fetch - continue - try: - h = html2text.HTML2Text() - h.escape_snob = True - h.unicode_snob = True - h.ignore_links = True - h.ignore_images = True - h.ignore_emphasis = True - # fetch data - with default_storage.open(note.get_relative_s3_path(),'r') as \ - html: - note.text = h.handle(html.read()) - note.save() - cleaned_notes += 1 - print 'Processed {n}'.format(n=note) - except Exception, e: - print note - print e - continue""" print 'Processed %s notes' % converted_notes -- 2.25.1