X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f5a64ece4a0158206502cea690f9a343e06bad57..2f63ddbb8cb9d393f99a03ee057291d23c6655de:/src/stats/models.py diff --git a/src/stats/models.py b/src/stats/models.py index ca0b55dab..5dcd55139 100644 --- 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: - 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)