Skip to content

1 card is missing during deck generation #20

Open
@fspv

Description

@fspv

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                                                                                                      

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions