pickledb
pickledb copied to clipboard
why json.dump data twice?
In the pickledb.py dump function(code line 90), the json.dump() func dumps data the first time, then the dthread dumps data second time.
It seems a little confusing. Is that a bug or does anybody know why?
I also can't see why this is being written twice. I have removed the initial json.dump and tested but could not find any sort of errors when running. I'm not sure if this was intended to be removed once the capability of writing in a thread was introduced.