1 card is missing during deck generation
fspv opened this issue · 1 comments
Leetcode return tehre are 2052 cards, but we get 2051 in the end. It is either a bug with the way we calculate pages and offsets, or leetcode really returns incorrect number of problems. Have to investigate
spv@laptop [venv:leetcode-anki] leetcode-anki $ time ipython3 --pdb -- generate.py
INFO:root:Fetching 2052 problems 50 per page
100%|████████████████████████████████████████████████████████████████████████| 2100/2100 [04:37<00:00, 7.58problem/s]
INFO:root:Generating flashcards
100%|███████████████████████████████████████████████████████████████████| 2051/2051 [00:00<00:00, 28815.78flashcard/s]
real 4m41.243s
user 0m3.262s
sys 0m0.440s
I get one card extra,
(leetcode-anki) C:\git\leetcode-anki>python generate.py --list-id erbd86ur --output-file neetcode.apkg
C:\git\leetcode-anki\generate.py:215: DeprecationWarning: There is no current event loop
loop: asyncio.events.AbstractEventLoop = asyncio.get_event_loop()
INFO:root:Fetching 151 problems 151 per page
100%|███████████████████████████████████████████████████████████████████████████| 151/151 [00:05<00:00, 27.51problem/s]
INFO:root:Generating flashcards
100%|██████████████████████████████████████████████████████████████████████| 150/150 [00:00<00:00, 37509.43flashcard/s]