From c4c73f2204ba7136b9573c33b2a0f9a01829b78a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 1 Jun 2021 11:03:24 +0200 Subject: [PATCH] fix --- src/stats/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.20.1