Skip to content
This repository
Browse code

remove ul when no memes are found

  • Loading branch information...
commit 5cefb0fdebbe74ced16449818bad69433b55c378 1 parent 632fe3e
Scott Johnson authored October 16, 2010 mortenf committed October 27, 2010

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  filters/mememe.plugin
4  filters/mememe.plugin
@@ -496,6 +496,10 @@ for i in range(0,len(weighted_links)):
496 496
   count = count + 1
497 497
   if count >= 10: break
498 498
 
  499
+# remove ul when there are no memes
  500
+if memes_ul.lsCountNode() < 1:
  501
+  memes_ul.unlinkNode()
  502
+
499 503
 log.info("Writing " + MEMES_ATOM)
500 504
 output=open(MEMES_ATOM,'w')
501 505
 output.write(feed_doc.serialize('utf-8'))

0 notes on commit 5cefb0f

Please sign in to comment.
Something went wrong with that request. Please try again.