From: Radek Czajka Date: Tue, 1 Jun 2021 11:05:38 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c061ce9de60c897addd6a9217465c434ba429e7e?ds=inline fix --- 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} )