X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4fb23ed3c3396d23a37a718fc857ecc8b36b0c7f..603df34c2176722c820cbe5ae193b3dcc755cd68:/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.