steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
154 stars 100 forks source link

Post.export() invalid for storing in mongo db #204

Open hrosspet opened 6 years ago

hrosspet commented 6 years ago

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.

cyon1c commented 6 years ago

What version of Python and steem are you using?

hrosspet commented 6 years ago

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'

cyon1c commented 6 years ago

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