aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlas Oliva <blasoliva@gmail.com>2015-02-10 17:34:32 -0300
committerBlas Oliva <blasoliva@gmail.com>2015-02-10 17:34:32 -0300
commitf938e17b9c09bd206db8a10a75691718a37a556a (patch)
tree038d1d92df32c593846f36d01596e5f1c562c4b2
parent834fcd27b190ac7b8cd578cd300c47272143af6f (diff)
downloadreebot-f938e17b9c09bd206db8a10a75691718a37a556a.tar.gz
reebot-f938e17b9c09bd206db8a10a75691718a37a556a.zip
Yaco's TOC
-rwxr-xr-xreebot.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/reebot.py b/reebot.py
index 490f4fe..899d7c5 100755
--- a/reebot.py
+++ b/reebot.py
@@ -131,9 +131,8 @@ class rBot:
131 # Loop over entries 131 # Loop over entries
132 for entry in feeds.entries: 132 for entry in feeds.entries:
133 if self.db.log.find_one( { "url" : entry.link } ) is None: 133 if self.db.log.find_one( { "url" : entry.link } ) is None:
134 msgqueue.append( feed['name'] 134 msgqueue.append( feed['name'] + " ( " + feed['site'] + " ) | "
135 + " | " + feeds.feed.title + " > " 135 + " > " . join(map(lambda tag : re.sub(r, '', entry[tag]), feed['tags'])) )
136 + " : " . join(map(lambda tag : re.sub(r, '', entry[tag]), feed['tags'])) )
137 # Insert link into log database 136 # Insert link into log database
138 self.db.log.insert( { "url" : entry.link } ) 137 self.db.log.insert( { "url" : entry.link } )
139 138