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:
misha 2022-07-10 03:04:36 +03:00 committed by GitHub
parent a2719c6ea2
commit b9dd7ce2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ def _extract_forecasts_from_page(page):
looking_for_a_forecast = True
for line in page.split("\n"):
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:
looking_for_a_forecast = False