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
|
@classmethod
|
||||||
def get_all(cls):
|
def get_all(cls):
|
||||||
return cls._registry.values()
|
return list(cls._registry.values())
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get(cls, slug):
|
def get(cls, slug):
|
||||||
@@ -73,7 +73,7 @@ class Statistic(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_all(cls):
|
def get_all(cls):
|
||||||
return cls._registry.values()
|
return list(cls._registry.values())
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get(cls, slug):
|
def get(cls, slug):
|
||||||
|
|||||||
Reference in New Issue
Block a user