X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4fb23ed3c3396d23a37a718fc857ecc8b36b0c7f..b6d44713f806e7186589da45d7622123a9c36a60:/src/annoy/models.py diff --git a/src/annoy/models.py b/src/annoy/models.py index f6dd827d1..0d887920d 100644 --- a/src/annoy/models.py +++ b/src/annoy/models.py @@ -85,6 +85,10 @@ class Banner(models.Model): return 0 return (self.progress or 0) / self.target * 100 + @property + def progress_percent_pretty(self): + return int(self.progress_percent) + def update_progress(self): # Total of new payments during the action. # This definition will need to change for longer timespans.