keep-it-markdown: --all option fails to export all notes

Using the --all option, kim.py reports 501 exported notes. However only ~257 notes are exported. Using Google Takeout, I confirmed I do have a total of 501 notes - so kim.py is reporting the correct number of source notes but not actually converting all of them. The script does not appear to be crashing.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

This has been fixed in the next version 0.5.x

@snokec if you want to fix the counting bug manually for now - you need to add 2 lines after line 304 in kim.py

     else:
          ccnt = 0

note that the indents must match the previous if indents like this:

     if gnote.archived == False and gnote.trashed == False:
           ccnt = keep_save_md_file(keepapi, gnote, note_labels, note_date, overwrite, skip_existing)
     else:  
           ccnt = 0  

@devidw - your very good point on archived notes gave me a thought on the count issue - when I walked over to get my coffee I realized that the count with --all is most likely counting both archive and trash notes even though they are not converted. I will test that.

cc @snokec