Permalink
Browse files

fix bug

  • Loading branch information...
Binux
Binux committed Jan 16, 2012
1 parent 1d607c9 commit 646624c6e67c7cd2d61d4ed0bbe7eae4cdc53cf0
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/db_task_manager.py
View
@@ -102,7 +102,7 @@ def _update_task_list(self, limit=10, st=0, ignore=False):
session = Session()
tasks = self.xunlei.get_task_list(limit, st)
for task in tasks[::-1]:
- if task['status'] == "finished":
+ if task['lixian_url']:
self.last_task_id = task['task_id']
db_task_status = session.query(db.Task.status).filter(
db.Task.id == task['task_id']).first()

0 comments on commit 646624c

Please sign in to comment.