remove ul when no memes are found
This commit is contained in:
parent
632fe3e7cc
commit
5cefb0fdeb
@ -496,6 +496,10 @@ for i in range(0,len(weighted_links)):
|
|||||||
count = count + 1
|
count = count + 1
|
||||||
if count >= 10: break
|
if count >= 10: break
|
||||||
|
|
||||||
|
# remove ul when there are no memes
|
||||||
|
if memes_ul.lsCountNode() < 1:
|
||||||
|
memes_ul.unlinkNode()
|
||||||
|
|
||||||
log.info("Writing " + MEMES_ATOM)
|
log.info("Writing " + MEMES_ATOM)
|
||||||
output=open(MEMES_ATOM,'w')
|
output=open(MEMES_ATOM,'w')
|
||||||
output.write(feed_doc.serialize('utf-8'))
|
output.write(feed_doc.serialize('utf-8'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user