have a collection in mongodb called 'collection' and I need to do and upsert using pymongo.
collection.update_one({'_id': workflowID}, {
'$set': {'repop': repop}, {'data': workflow__list()__}
}, upsert = True, multi = False)
but I get 'SyntaxError: invalid syntax' with the little up arrow pointing under the 'o' in the repop object being stored as "repop".
I've looked at all the syntax in the world on this and this appears correct to me. Any tips?