Skip to content

Commit

Permalink
Switch to lxml for comment stripping.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Apr 8, 2013
1 parent 9565c27 commit 33e6058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/rss_feeds/models.py
Expand Up @@ -36,7 +36,7 @@
from utils.feed_functions import timelimit, TimeoutError
from utils.feed_functions import relative_timesince
from utils.feed_functions import seconds_timesince
from utils.story_functions import strip_tags, htmldiff, strip_comments
from utils.story_functions import strip_tags, htmldiff, strip_comments__lxml
from vendor.redis_completion.engine import RedisEngine

ENTRY_NEW, ENTRY_UPDATED, ENTRY_SAME, ENTRY_ERR = range(4)
Expand Down Expand Up @@ -852,7 +852,7 @@ def add_update_stories(self, stories, existing_stories, verbose=False):
continue

story_content = story.get('story_content')
story_content = strip_comments(story_content)
story_content = strip_comments__lxml(story_content)
story_tags = self.get_tags(story)
story_link = self.get_permalink(story)

Expand Down

0 comments on commit 33e6058

Please sign in to comment.