From e9a5bcb8909cce9d1136e00e099e74accd2d1323 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 23 Jan 2024 23:00:22 +0100 Subject: [PATCH] fix max_votes --- ox/web/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 4b08cab..1b93459 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -927,7 +927,7 @@ def max_votes(): data = cache.read_url(url).decode('utf-8', 'ignore') votes = max([ int(v.replace(',', '')) - for v in re.compile('.*?([\d,]+)', re.DOTALL).findall(data) ]) return votes