aboutsummaryrefslogtreecommitdiff
path: root/app/utils/batch/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils/batch/common.py')
-rw-r--r--app/utils/batch/common.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/utils/batch/common.py b/app/utils/batch/common.py
index 0bb8b3d..64c6ebd 100644
--- a/app/utils/batch/common.py
+++ b/app/utils/batch/common.py
@@ -119,10 +119,11 @@ def get_batch_query_args(query):
# Can't have query with just one element, they have to be
# key=value.
if len(arg) > 1:
- if args.get(arg[0], None):
+ try:
+ args[arg[0]].append(arg[1])
+ args[arg[0]] = list(set(args[arg[0]]))
+ except KeyError:
+ args[arg[0]] = []
args[arg[0]].append(arg[1])
- else:
- args[arg[0]] = list([arg[1]])
- args[arg[0]] = list(set(args[arg[0]]))
return args