Skip to content

Commit

Permalink
修改清理程序
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Jan 15, 2013
1 parent 54c6581 commit 2bccb6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions clear.py
Expand Up @@ -26,11 +26,9 @@

from main import process
from controller import bots
import time

# 用来出错重启前,先清理出错时间段内的通知

while True:
for bot in bots:
process(bot, True)
time.sleep(1)
2 changes: 1 addition & 1 deletion main.py
Expand Up @@ -61,7 +61,7 @@ def process(bot, just_clear=False):

# 如果已经处理过了, 或在执行清空消息脚本
if redis_conn.get(notify_id) or just_clear:
print 'get duplicate notification', notification
print 'clear' if just_clear else 'get duplicate notification', notification
return

try:
Expand Down

0 comments on commit 2bccb6f

Please sign in to comment.