Skip to content

Commit

Permalink
Update blueprint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
djamg committed Jul 20, 2023
1 parent 2aa3449 commit c33d034
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/baseframe/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ def init_app(
raise ValueError("App has misconfigured secret keys")
app.session_interface = RotatingKeySecureCookieSessionInterface()

# Check if Matomo URL is ending with '/' or else add it
if app.config.get('MATOMO_URL') and not app.config['MATOMO_URL'].endswith('/'):
app.config['MATOMO_URL'] += '/'
# Default .js and tracking file for Matomo
if app.config.get('MATOMO_URL') and app.config.get('MATOMO_ID'):
# Default .js and tracking file for Matomo
app.config.setdefault('MATOMO_JS', 'matomo.js')
app.config.setdefault('MATOMO_FILE', 'matomo.php')
# Check if Matomo URL is ending with '/' or else add it
if not app.config['MATOMO_URL'].endswith('/'):
app.config['MATOMO_URL'] += '/'

statsd.init_app(app)

Expand Down

0 comments on commit c33d034

Please sign in to comment.