Skip to content

Commit 7d9a178

Browse files
committed
increase the number of fetched results
fix id type
1 parent ec3ba53 commit 7d9a178

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

koishi/contest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,13 @@ def result(self) -> Result:
117117
@property
118118
def results(self) -> List[Result]:
119119
"""A list of latest results."""
120-
resp = self._ses.get(f"https://satori.tcs.uj.edu.pl/contest/{self.id}/results?results_limit=256")
120+
resp = self._ses.get(f"https://satori.tcs.uj.edu.pl/contest/{self.id}/results?results_limit=4096")
121121
dom = lxml.html.fromstring(resp.text)
122122

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

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

0 commit comments

Comments
 (0)