summaryrefslogtreecommitdiff
path: root/python/skytools/dbservice.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/skytools/dbservice.py')
-rwxr-xr-xpython/skytools/dbservice.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/skytools/dbservice.py b/python/skytools/dbservice.py
index e49576ce..d1ddb666 100755
--- a/python/skytools/dbservice.py
+++ b/python/skytools/dbservice.py
@@ -92,7 +92,11 @@ def get_record_list(array):
"""
if array is None:
return []
- return map(get_record, skytools.parse_pgarray(array))
+
+ if isinstance(array, list):
+ return map(get_record, array)
+ else:
+ return map(get_record, skytools.parse_pgarray(array))
def get_record_lists(tbl, field):
""" Create dictionary of lists from given list using field as grouping criteria