Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Binux committed Jan 16, 2012
1 parent 1d607c9 commit 646624c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/db_task_manager.py
Expand Up @@ -102,7 +102,7 @@ def _update_task_list(self, limit=10, st=0, ignore=False):
session = Session() session = Session()
tasks = self.xunlei.get_task_list(limit, st) tasks = self.xunlei.get_task_list(limit, st)
for task in tasks[::-1]: for task in tasks[::-1]:
if task['status'] == "finished": if task['lixian_url']:
self.last_task_id = task['task_id'] self.last_task_id = task['task_id']
db_task_status = session.query(db.Task.status).filter( db_task_status = session.query(db.Task.status).filter(
db.Task.id == task['task_id']).first() db.Task.id == task['task_id']).first()
Expand Down

0 comments on commit 646624c

Please sign in to comment.