Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 card is missing during deck generation #20

Open
fspv opened this issue Oct 26, 2021 · 1 comment
Open

1 card is missing during deck generation #20

fspv opened this issue Oct 26, 2021 · 1 comment

Comments

@fspv
Copy link
Owner

fspv commented Oct 26, 2021

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                                                                                                      
@xnorpx
Copy link
Contributor

xnorpx commented Jun 13, 2022

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]

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants