Skip to content

Commit

Permalink
increase the number of fetched results
Browse files Browse the repository at this point in the history
fix id type
  • Loading branch information
cloud11665 committed May 3, 2021
1 parent ec3ba53 commit 7d9a178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion koishi/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@ def result(self) -> Result:
@property
def results(self) -> List[Result]:
"""A list of latest results."""
resp = self._ses.get(f"https://satori.tcs.uj.edu.pl/contest/{self.id}/results?results_limit=256")
resp = self._ses.get(f"https://satori.tcs.uj.edu.pl/contest/{self.id}/results?results_limit=4096")
dom = lxml.html.fromstring(resp.text)

out = []
for tr in dom.xpath(r"//table[@class='results']/tr[position()!=1]"):
id = xpstr(tr, r".//td[1]/a/text()")
id = int(id)
src = xpstr(tr, r".//td[2]/text()")

date = xpstr(tr, r".//td[3]/text()")
Expand Down

0 comments on commit 7d9a178

Please sign in to comment.