summaryrefslogtreecommitdiff
path: root/commcrawler/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'commcrawler/models.py')
-rw-r--r--commcrawler/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/commcrawler/models.py b/commcrawler/models.py
index 22e5602..ef99c4f 100644
--- a/commcrawler/models.py
+++ b/commcrawler/models.py
@@ -73,7 +73,7 @@ class Crawl(models.Model):
todo = self.target_nb
if todo == 0:
return "-"
- if self.status == "P":
+ if self.status in ("P", "A"):
done = self.results.filter(status__in=("T", "F")).count()
percent = int(done / todo * 100)
return "{} % ({}/{})".format(percent, done, todo)