fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests back up
[wolnelektury.git]
/
src
/
stats
/
models.py
diff --git
a/src/stats/models.py
b/src/stats/models.py
index
ca0b55d
..
5dcd551
100644
(file)
--- a/
src/stats/models.py
+++ b/
src/stats/models.py
@@
-23,7
+23,7
@@
class VisitsBase(models.Model):
data = urlopen(url).read().decode('utf-16')
lines = data.split('\n')[1:]
for line in lines:
data = urlopen(url).read().decode('utf-16')
lines = data.split('\n')[1:]
for line in lines:
- m = re.match('^/katalog/lektura/([^,]+)\.html,', line)
+ m = re.match(
r
'^/katalog/lektura/([^,]+)\.html,', line)
if m is not None:
slug = m.group(1)
_url, uviews, views, _rest = line.split(',', 3)
if m is not None:
slug = m.group(1)
_url, uviews, views, _rest = line.split(',', 3)