@@ -40,7 +40,7 @@ def parse_args() -> argparse.Namespace:
40
40
"--page-size" ,
41
41
type = int ,
42
42
help = "Get at most this many problems (decrease if leetcode API times out)" ,
43
- default = 1000 ,
43
+ default = 500 ,
44
44
)
45
45
parser .add_argument (
46
46
"--list-id" ,
@@ -109,7 +109,9 @@ async def generate_anki_note(
109
109
)
110
110
111
111
112
- async def generate (start : int , stop : int , page_size : int , list_id : str , output_file : str ) -> None :
112
+ async def generate (
113
+ start : int , stop : int , page_size : int , list_id : str , output_file : str
114
+ ) -> None :
113
115
"""
114
116
Generate an Anki deck
115
117
"""
@@ -176,7 +178,9 @@ async def generate(start: int, stop: int, page_size: int, list_id: str, output_f
176
178
)
177
179
leetcode_deck = genanki .Deck (LEETCODE_ANKI_DECK_ID , Path (output_file ).stem )
178
180
179
- leetcode_data = leetcode_anki .helpers .leetcode .LeetcodeData (start , stop , page_size , list_id )
181
+ leetcode_data = leetcode_anki .helpers .leetcode .LeetcodeData (
182
+ start , stop , page_size , list_id
183
+ )
180
184
181
185
note_generators : List [Coroutine [Any , Any , LeetcodeNote ]] = []
182
186
@@ -204,7 +208,13 @@ async def main() -> None:
204
208
"""
205
209
args = parse_args ()
206
210
207
- start , stop , page_size , list_id , output_file = args .start , args .stop , args .page_size , args .list_id , args .output_file
211
+ start , stop , page_size , list_id , output_file = (
212
+ args .start ,
213
+ args .stop ,
214
+ args .page_size ,
215
+ args .list_id ,
216
+ args .output_file ,
217
+ )
208
218
await generate (start , stop , page_size , list_id , output_file )
209
219
210
220
0 commit comments