Skip to content

Commit

Permalink
remove ul when no memes are found
Browse files Browse the repository at this point in the history
  • Loading branch information
scottj authored and mortenf committed Oct 27, 2010
1 parent 632fe3e commit 5cefb0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions filters/mememe.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@ for i in range(0,len(weighted_links)):
count = count + 1
if count >= 10: break

# remove ul when there are no memes
if memes_ul.lsCountNode() < 1:
memes_ul.unlinkNode()

log.info("Writing " + MEMES_ATOM)
output=open(MEMES_ATOM,'w')
output.write(feed_doc.serialize('utf-8'))
Expand Down

0 comments on commit 5cefb0f

Please sign in to comment.