Emma Boudreau
Mar 20, 2023

--

So this TOML file contains client data that is loaded into c[:OliveCore].client_data. If we were to use the return of the comprehension in this example, we would be missing the keys that are already in the file whenever we add the new keys, as not all of the keys are loaded into the client_data, we don't want to overwrite the old ones, not possible to append, so the path I took was to read the file in as a Dict, push new values/replace old values in the comprehension, and then print the Dict back out into a file. I understand why without context that could be a little perplexing, I hope this clarification was helpful in that regard. :)
Thank you for your response, I will stop typing now because I have acrylics and I'm using my phone 🤣🥲. Have a good day !

--

--

Emma Boudreau
Emma Boudreau

Written by Emma Boudreau

i am a computer nerd. I love art, programming, and hiking. https://github.com/emmaccode

No responses yet