fix default GET param 'types' on operations stats

This commit is contained in:
Aurélien Delobelle 2017-04-04 01:29:19 +02:00
parent 10d2b58fa7
commit df467767f4

View file

@ -2324,7 +2324,9 @@ class AccountStatOperation(ScaleMixin, PkUrlMixin, JSONDetailView):
scale = self.scale scale = self.scale
types = self.request.GET.get('types', None) types = self.request.GET.get('types', None)
if types is not None: if types is None:
types = []
else:
types = ast.literal_eval(types) types = ast.literal_eval(types)
operations = self.get_operations(types=types, scale=scale) operations = self.get_operations(types=types, scale=scale)