aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlas Oliva <blasoliva@gmail.com>2015-01-20 00:49:27 -0300
committerBlas Oliva <blasoliva@gmail.com>2015-01-20 00:49:27 -0300
commita02eea6c2e02aea6ba27669437e3535ddfc6314f (patch)
tree1627fbf19bb54bbc3c28baa9589611d2e84c683c
parent532e3cff1e58693a0df735fa3007cf581a205331 (diff)
downloadreebot-a02eea6c2e02aea6ba27669437e3535ddfc6314f.tar.gz
reebot-a02eea6c2e02aea6ba27669437e3535ddfc6314f.zip
Deployment MongoDB
-rwxr-xr-xrbot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbot.py b/rbot.py
index 37ba468..7d8bf3c 100755
--- a/rbot.py
+++ b/rbot.py
@@ -98,9 +98,9 @@ class rBot:
98 url = entry.link.encode( 'utf-8','ignore' ) 98 url = entry.link.encode( 'utf-8','ignore' )
99 if self.db.log.find_one( { "url" : url } ) is None: 99 if self.db.log.find_one( { "url" : url } ) is None:
100 msgqueue.append( feed['name'] 100 msgqueue.append( feed['name']
101 + " | " + feeds.feed.title.encode( 'utf-8' ) 101 + " | " + feeds.feed.title.encode( 'utf-8','ignore' )
102 + " > " + entry.title.encode( 'utf-8' ) 102 + " > " + entry.title.encode( 'utf-8','ignore' )
103 + " : " + entry.link.encode( 'utf-8' ) ) 103 + " : " + entry.link.encode( 'utf-8','ignore' ) )
104 self.db.log.insert( { "url" : url } ) 104 self.db.log.insert( { "url" : url } )
105 105
106 while len( msgqueue ) > 0: 106 while len( msgqueue ) > 0: