forked from DGNum/gestioCOF
fix default GET param 'types' on operations stats
This commit is contained in:
parent
10d2b58fa7
commit
df467767f4
1 changed files with 3 additions and 1 deletions
|
@ -2324,7 +2324,9 @@ class AccountStatOperation(ScaleMixin, PkUrlMixin, JSONDetailView):
|
|||
scale = self.scale
|
||||
|
||||
types = self.request.GET.get('types', None)
|
||||
if types is not None:
|
||||
if types is None:
|
||||
types = []
|
||||
else:
|
||||
types = ast.literal_eval(types)
|
||||
|
||||
operations = self.get_operations(types=types, scale=scale)
|
||||
|
|
Loading…
Reference in a new issue