display
This commit is contained in:
parent
7e2bb91b3b
commit
cf2dca7520
1 changed files with 2 additions and 1 deletions
|
|
@ -370,7 +370,7 @@ class Boobathon(ReplApplication):
|
||||||
d = self.event.end - now
|
d = self.event.end - now
|
||||||
msg = 'The event will be finished in %d days, %02d:%02d:%02d'
|
msg = 'The event will be finished in %d days, %02d:%02d:%02d'
|
||||||
|
|
||||||
print msg % (d.days, d.seconds/3600%24, d.seconds%3600/60, d.seconds%60)
|
print msg % (d.days, d.seconds/3600, d.seconds%3600/60, d.seconds%60)
|
||||||
|
|
||||||
def do_tasks(self, line):
|
def do_tasks(self, line):
|
||||||
"""
|
"""
|
||||||
|
|
@ -619,6 +619,7 @@ class Boobathon(ReplApplication):
|
||||||
last_done = i
|
last_done = i
|
||||||
elif task.status == task.STATUS_PROGRESS:
|
elif task.status == task.STATUS_PROGRESS:
|
||||||
task.status = task.STATUS_NONE
|
task.status = task.STATUS_NONE
|
||||||
|
print 'Task #%s (%s,%s) canceled.' % (i, task.backend, task.capability)
|
||||||
|
|
||||||
if (i == task_id or task_id < 0) and task.status == task.STATUS_NONE:
|
if (i == task_id or task_id < 0) and task.status == task.STATUS_NONE:
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue