Skip to content

Commit

Permalink
Piwik: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Feb 4, 2025
1 parent bd317db commit 6b4d4f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions piwik/indico_piwik/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ class PiwikPlugin(IndicoPlugin):
"""
configurable = True
settings_form = SettingsForm
report_script = 'index.php'
track_script = 'piwik.php'

default_settings = {
'enabled': False,
Expand Down
3 changes: 1 addition & 2 deletions piwik/indico_piwik/queries/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class PiwikQueryReportBase(PiwikQueryBase):
"""Base Piwik query to request reports"""

def __init__(self):
from indico_piwik.plugin import PiwikPlugin
super().__init__(query_script=PiwikPlugin.report_script)
super().__init__(query_script='index.php')

def call(self, date=('last7',), period='day', **query_params):
date = ','.join(map(str, date))
Expand Down

0 comments on commit 6b4d4f3

Please sign in to comment.