fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb5061a
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 1 Jun 2021 09:03:24 +0000
(11:03 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 1 Jun 2021 09:03:24 +0000
(11:03 +0200)
src/stats/models.py
patch
|
blob
|
history
diff --git
a/src/stats/models.py
b/src/stats/models.py
index
6ddb4bc
..
c1b4d16
100644
(file)
--- a/
src/stats/models.py
+++ b/
src/stats/models.py
@@
-30,10
+30,10
@@
class Visits(models.Model):
views = int(views)
try:
book = Book.objects.get(slug=slug)
views = int(views)
try:
book = Book.objects.get(slug=slug)
- except Book.DoesNotExist
s
:
+ except Book.DoesNotExist:
continue
else:
cls.objects.create(
book=book, year=year, month=month,
continue
else:
cls.objects.create(
book=book, year=year, month=month,
- views=views, uviews=uviews
+ views=views, u
nique_
views=uviews
)
)