From e88574bff0f3713685ed3660cad643fffd7923bf Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Thu, 8 Jul 2021 10:47:36 +0200 Subject: [PATCH] Piwik: Do not use deprecated API This fixes compatibility with Matomo --- piwik/README.md | 7 ++----- piwik/indico_piwik/queries/graphs.py | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/piwik/README.md b/piwik/README.md index 1863253..f65a070 100644 --- a/piwik/README.md +++ b/piwik/README.md @@ -1,10 +1,7 @@ # Piwik Plugin -The Piwik plugin allows integrating Indico with a Piwik instance to gather -statistics about the users accessing Indico or specific Indico events. - -Please note that the plugin has not been tested with Piwik's successor, -Matomo, so we do not know whether it is compatible with it or not. +The Piwik plugin allows integrating Indico with a Piwik or Matomo instance to +gather statistics about the users accessing Indico or specific Indico events. ## Changelog diff --git a/piwik/indico_piwik/queries/graphs.py b/piwik/indico_piwik/queries/graphs.py index 8fecf6d..0ce5a4c 100644 --- a/piwik/indico_piwik/queries/graphs.py +++ b/piwik/indico_piwik/queries/graphs.py @@ -46,5 +46,5 @@ class PiwikQueryReportEventGraphCountries(PiwikQueryReportEventGraphBase): class PiwikQueryReportEventGraphDevices(PiwikQueryReportEventGraphBase): def call(self, **query_params): - return super().call(apiModule='UserSettings', apiAction='getOS', period='range', width=320, height=260, - graphType='horizontalBar', **query_params) + return super().call(apiModule='DevicesDetection', apiAction='getOsVersions', period='range', width=320, + height=260, graphType='horizontalBar', **query_params)