Piwik: Do not use deprecated API

This fixes compatibility with Matomo
This commit is contained in:
Adrian Moennich 2021-07-08 10:47:36 +02:00
parent 1e36875e57
commit e88574bff0
2 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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)