From 7e7520d39c16ae56e51af9c0cd62cc0a4de0c64d Mon Sep 17 00:00:00 2001 From: imDMG Date: Thu, 31 Jan 2019 18:33:55 +0000 Subject: [PATCH] regex fix --- nnmclub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnmclub.py b/nnmclub.py index ce04e15..2c5be3a 100644 --- a/nnmclub.py +++ b/nnmclub.py @@ -130,7 +130,7 @@ class nnmclub(object): response = self._catch_error_request(query) page = response.read().decode('cp1251') self.draw(page) - total = int(re.search(r'\(max:\s(\d{1,3})\)', page)[1]) if first else -1 + total = int(re.search(r'(\d{1,3})\s\(max:', page)[1]) if first else -1 return total