From: Radek Czajka Date: Tue, 1 Jun 2021 09:03:24 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c4c73f2204ba7136b9573c33b2a0f9a01829b78a?ds=inline fix --- diff --git a/src/stats/models.py b/src/stats/models.py index 6ddb4bc71..c1b4d16d8 100644 --- a/src/stats/models.py +++ b/src/stats/models.py @@ -30,10 +30,10 @@ class Visits(models.Model): views = int(views) try: book = Book.objects.get(slug=slug) - except Book.DoesNotExists: + except Book.DoesNotExist: continue else: cls.objects.create( book=book, year=year, month=month, - views=views, uviews=uviews + views=views, unique_views=uviews )