rj2obs icon indicating copy to clipboard operation
rj2obs copied to clipboard

Fixed "KeyError" for page.get() methods

Open AnweshGangula opened this issue 4 years ago • 2 comments

page.get() is resulting in an error if the key is not available. Resolved it using the or operator

AnweshGangula avatar Jul 14 '21 18:07 AnweshGangula

@AnweshGangula Since this has not been merged yet, I copied your raw r2o.py file and used it on my roam json. However, my daily notes were left in their original location with original filenames. I was expecting them to be converted to yyyy-mm-dd and moved into the daily notes folder. Am I missing something by just using your r2o.py? I'm running pyhton 3.9.6 on my intel Mac. Thank you for all these improvements!

Pass 1: scan all pages 100%|███████████████████████████████████████████████████████████████████████████| 1135/1135 [00:00<00:00, 131550.10it/s] Pass 2: track blockrefs 100%|████████████████████████████████████████████████████████████████████████████| 1135/1135 [00:00<00:00, 35676.27it/s] Pass 3: generate 100%|█████████████████████████████████████████████████████████████████████████████| 1135/1135 [00:00<00:00, 2864.18it/s] Done!

jeremy-allen avatar Aug 06 '21 13:08 jeremy-allen

@jeremy-allen, Thank you for pointing it out. I updated the code to correct this.

AnweshGangula avatar Aug 09 '21 09:08 AnweshGangula