Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove ul when no memes are found

  • Loading branch information...
commit 8f48fbeb4a6538f6365615413e822e0cff4228dc 1 parent ee4f756
@scottj scottj authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 filters/mememe.plugin
View
4 filters/mememe.plugin
@@ -495,6 +495,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'))

0 comments on commit 8f48fbe

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