Skip to content

Commit

Permalink
PR to fix zzzsochi#32 issue
Browse files Browse the repository at this point in the history
Fix to change default for `FORCE_LOWER` to `True` zzzsochi#32
  • Loading branch information
oldboys92 authored Feb 1, 2024
1 parent 7cbe99d commit 900485a
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 900485a

Please sign in to comment.