Fixed "KeyError" for page.get() methods
page.get() is resulting in an error if the key is not available.
Resolved it using the or operator
@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, Thank you for pointing it out. I updated the code to correct this.