Skip to content

Commit 00b022b

Browse files
committed
fix(problem): Fix bug in getting testcases
1 parent 062e42f commit 00b022b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeforces/problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def get_info(contest_id, index, gym=False, lang='en'):
5959
memory_limit = soup.find_all("div", class_="memory-limit")[0].text[21:]
6060

6161
inputs = [
62-
i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="input")
62+
i.pre.get_text('\n') for i in soup.find_all("div", class_="input")
6363
]
6464

6565
outputs = [
66-
i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="output")
66+
i.pre.get_text('\n') for i in soup.find_all("div", class_="output")
6767
]
6868

6969
sample_tests = zip(inputs, outputs)

0 commit comments

Comments
 (0)