remove ul when no memes are found

This commit is contained in:
Scott Johnson 2010-10-16 00:11:10 -05:00
parent ee4f756cf5
commit 8f48fbeb4a

View File

@ -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'))