Skip to content

Commit

Permalink
Fixed out of place debuggers in publisher.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtnpro committed Jun 24, 2016
1 parent b9a37b3 commit 8cad048
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ircb/publishers/__init__.py
Expand Up @@ -83,15 +83,18 @@ def handle_create(self, data):
Check if an insert operation in message_logs table affects our
results. If yes, append it to results.
"""
skip = False
if self.skip(data):
return
skip = skip or True
if self.results and data['timestamp'] < self.index[
self.results[-1]]['timestamp']:
return
skip = skip or True
if not self.fetched:
skip = skip or True
if skip:
logger.debug('skip created data', data)
return

logger.debug('skip created data', data)
self.index[data['id']] = data
self.results.append(data['id'])
logger.debug('updated results: %s, %s', self.results, self.index)
Expand Down

0 comments on commit 8cad048

Please sign in to comment.