From c061ce9de60c897addd6a9217465c434ba429e7e Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 1 Jun 2021 13:05:38 +0200 Subject: [PATCH] fix --- src/stats/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats/models.py b/src/stats/models.py index 9edc17be7..e95e75951 100644 --- a/src/stats/models.py +++ b/src/stats/models.py @@ -32,6 +32,6 @@ class Visits(models.Model): continue else: cls.objects.update_or_create( - book=book, year=year, month=month, + book=book, date=date, defaults={'views': views, 'unique_views': uviews} ) -- 2.20.1