aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlas Oliva <blasoliva@gmail.com>2015-01-20 00:31:45 -0300
committerBlas Oliva <blasoliva@gmail.com>2015-01-20 00:31:45 -0300
commit1d344643d5287c30c1834be1a6a5812d0844ff66 (patch)
tree6380e7fc43f55697d0c86d354b32339504b90bd4
parent73d954f29479d148bac77a1b69c2a9fc143c148b (diff)
downloadreebot-1d344643d5287c30c1834be1a6a5812d0844ff66.tar.gz
reebot-1d344643d5287c30c1834be1a6a5812d0844ff66.zip
Deployment MongoDB
-rwxr-xr-xrbot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbot.py b/rbot.py
index c948688..d4d023e 100755
--- a/rbot.py
+++ b/rbot.py
@@ -96,12 +96,12 @@ class rBot:
96 # Loop over feeds entries 96 # Loop over feeds entries
97 for entry in feeds.entries: 97 for entry in feeds.entries:
98 if self.db.log.find_one( { "url" : entry.link.encode( 'utf-8' ) } ) is None: 98 if self.db.log.find_one( { "url" : entry.link.encode( 'utf-8' ) } ) is None:
99 self.db.log.insert( { "url" : entry.link.encode( 'utf-8' ) } )
100 msgqueue.append( feed['name'] 99 msgqueue.append( feed['name']
101 + " | " + feeds.feed.title.encode( 'utf-8' ) 100 + " | " + feeds.feed.title.encode( 'utf-8' )
102 + " > " + entry.title.encode( 'utf-8' ) 101 + " > " + entry.title.encode( 'utf-8' )
103 + " : " + entry.link.encode( 'utf-8' ) ) 102 + " : " + entry.link.encode( 'utf-8' ) )
104 103 self.db.log.insert( { "url" : entry.link.encode( 'utf-8' ) } )
104
105 while len( msgqueue ) > 0: 105 while len( msgqueue ) > 0:
106 msgq = msgqueue.pop() 106 msgq = msgqueue.pop()
107 for channel in channels_list: 107 for channel in channels_list: