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

index 9edc17b..e95e759 100644 (file)
@@ -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}
                     )