Browse Source

Python3's filter() function does not return a list anymore.

master
Johann Schmitz 6 years ago
parent
commit
7c66f420ae
Signed by: ercpe GPG Key ID: A084064277C501ED
  1. 3
      src/pypiwik/tracker.py

3
src/pypiwik/tracker.py

@ -270,7 +270,8 @@ class TrackingCodeBuilder(object):
self.tracker = tracker
def _paq_push(self, l):
return "_paq.push(%s);" % json.dumps(l)
# python3's filter() does not return a list
return "_paq.push(%s);" % json.dumps(list(l))
def _event_tracker(self):
if not (self.tracker.event_category and self.tracker.event_action):