Add improvement to the mayan_statistics app for Python 3.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ class StatisticNamespace(object):
|
||||
|
||||
@classmethod
|
||||
def get_all(cls):
|
||||
return cls._registry.values()
|
||||
return list(cls._registry.values())
|
||||
|
||||
@classmethod
|
||||
def get(cls, slug):
|
||||
@@ -73,7 +73,7 @@ class Statistic(object):
|
||||
|
||||
@classmethod
|
||||
def get_all(cls):
|
||||
return cls._registry.values()
|
||||
return list(cls._registry.values())
|
||||
|
||||
@classmethod
|
||||
def get(cls, slug):
|
||||
|
||||
Reference in New Issue
Block a user