Fix searching for forecasted timestamp
Seems like pages with forecasts by a given user on a given question changed wording from "made a forecast" to "made their 10th forecast".
This commit is contained in:
parent
a2719c6ea2
commit
b9dd7ce2fa
|
@ -86,7 +86,7 @@ def _extract_forecasts_from_page(page):
|
||||||
looking_for_a_forecast = True
|
looking_for_a_forecast = True
|
||||||
for line in page.split("\n"):
|
for line in page.split("\n"):
|
||||||
if looking_for_a_forecast:
|
if looking_for_a_forecast:
|
||||||
hit = re.findall("made a forecast", line)
|
hit = re.findall("made their \d+(st|nd|rd|th) forecast", line)
|
||||||
if hit:
|
if hit:
|
||||||
looking_for_a_forecast = False
|
looking_for_a_forecast = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user