Skip to content

ConfiguationError with MONGO_READ_PREFERENCE #30

Description

@tdterry

I tried upgrading to 0.3.0, and no I get a ConfigurationError from pymongo when I use MONGO_READ_PREFERENCE = ReadPreference.PRIMARY. It seems to be because of the trailing comma on https://github.com/dcrosta/flask-pymongo/blob/master/flask_pymongo/__init__.py#L210 causing flask_pymongo to send a tuple to pymongo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions