Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why json.dump data twice? #80

Open
ycombo opened this issue Sep 7, 2021 · 1 comment
Open

why json.dump data twice? #80

ycombo opened this issue Sep 7, 2021 · 1 comment

Comments

@ycombo
Copy link

ycombo commented Sep 7, 2021

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?

@ooojpeg
Copy link

ooojpeg commented Oct 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants