fix max_votes
This commit is contained in:
parent
e00d23e35c
commit
e9a5bcb890
1 changed files with 1 additions and 1 deletions
|
@ -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('<span name="nv" data-value="(\d+)"').findall(data)
|
||||
for v in re.compile('Votes</span>.*?([\d,]+)', re.DOTALL).findall(data)
|
||||
])
|
||||
return votes
|
||||
|
||||
|
|
Loading…
Reference in a new issue