fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a9843b
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 31 May 2021 13:42:18 +0000
(15:42 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 31 May 2021 13:42:18 +0000
(15:42 +0200)
src/stats/models.py
patch
|
blob
|
history
diff --git
a/src/stats/models.py
b/src/stats/models.py
index
0bd391a
..
6ddb4bc
100644
(file)
--- a/
src/stats/models.py
+++ b/
src/stats/models.py
@@
-25,7
+25,7
@@
class Visits(models.Model):
m = re.match('^/katalog/lektura/([^,]+)\.html,', line)
if m is not None:
slug = m.group(1)
m = re.match('^/katalog/lektura/([^,]+)\.html,', line)
if m is not None:
slug = m.group(1)
- _url, uviews, views = line.split(',', 3)
+ _url, uviews, views
, _rest
= line.split(',', 3)
uviews = int(uviews)
views = int(views)
try:
uviews = int(uviews)
views = int(views)
try: