steem-python icon indicating copy to clipboard operation
steem-python copied to clipboard

Post.export() invalid for storing in mongo db

Open hrosspet opened this issue 7 years ago • 3 comments

Post.export() returns tags in a set. Sets can't be stored in mongo db and need to be converted to lists (which is how they were stored in the past). According to the docs this is what export should be doing... Strip Python specific data-types and return a dictionary that can be safely stored as JSON or database entry.

hrosspet avatar Apr 03 '18 12:04 hrosspet

What version of Python and steem are you using?

cyon1c avatar Apr 03 '18 20:04 cyon1c

I am little bit confused now. Pip says I have version 1.0.0, but when I import steem and try steem.__version__ I get '0.18.103'

hrosspet avatar Apr 03 '18 21:04 hrosspet

You're pulling steem from somewhere other than the pip install location. Also, please include your Python version when running the code.

cyon1c avatar Apr 03 '18 22:04 cyon1c