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

change default for FORCE_LOWER to True #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Initialize with flask application and default parameters:
rating='g',
default='retro',
force_default=False,
force_lower=False,
force_lower=True,
use_ssl=False,
base_url=None)

Expand Down
6 changes: 3 additions & 3 deletions flask_gravatar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Gravatar(object):
rating='g',
default='retro',
force_default=False,
force_lower=False,
force_lower=True,
use_ssl=False,
base_url=None
)
Expand All @@ -72,7 +72,7 @@ class Gravatar(object):
rating = Property('g', key='GRAVATAR_RATING')
default = Property('retro', key='GRAVATAR_DEFAULT')
force_default = Property(False, key='GRAVATAR_FORCE_DEFAULT')
force_lower = Property(False, key='GRAVATAR_FORCE_LOWER')
force_lower = Property(True, key='GRAVATAR_FORCE_LOWER')
use_ssl = Property(None, key='GRAVATAR_USE_SSL')
base_url = Property(None, key='GRAVATAR_BASE_URL')

Expand Down Expand Up @@ -109,7 +109,7 @@ def init_app(self, app):
app.extensions['gravatar'] = self

def __call__(self, email, size=None, rating=None, default=None,
force_default=None, force_lower=False, use_ssl=None,
force_default=None, force_lower=True, use_ssl=None,
base_url=None):
"""Build gravatar link."""
if size is None:
Expand Down