Skip to content

Commit 07bca5c

Browse files
committed
Update of python-leetcode version, which has batch API (the version is backwards incompatible)
1 parent 016cb53 commit 07bca5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

generate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import leetcode.auth # type: ignore
2626
import leetcode.configuration # type: ignore
2727
import leetcode.models.graphql_query # type: ignore
28-
import leetcode.models.graphql_query_variables # type: ignore
28+
import leetcode.models.graphql_query_get_question_detail_variables # type: ignore
2929
import urllib3 # type: ignore
3030
from tqdm import tqdm # type: ignore
3131

@@ -172,7 +172,7 @@ async def _get_problem_data(self, problem_slug: str) -> Dict[str, str]:
172172
}
173173
}
174174
""",
175-
variables=leetcode.models.graphql_query_variables.GraphqlQueryVariables(
175+
variables=leetcode.models.graphql_query_get_question_detail_variables.GraphqlQueryGetQuestionDetailVariables( # noqa: E501
176176
title_slug=problem_slug
177177
),
178178
operation_name="getQuestionDetail",

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
python-leetcode==1.0.10
1+
python-leetcode==1.1.0
22
setuptools==57.5.0
33
diskcache
44
genanki

0 commit comments

Comments
 (0)