fix
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 1 Jun 2021 09:03:24 +0000 (11:03 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 1 Jun 2021 09:03:24 +0000 (11:03 +0200)
src/stats/models.py

index 6ddb4bc..c1b4d16 100644 (file)
@@ -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
                     )