Collection link on main and slight funding wording change.
[wolnelektury.git] / 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}
                     )