aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/database.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-15 14:31:13 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-15 14:31:13 +0000
commitc09a23ef289cb1de7129c555f7fd1c4e2839bc84 (patch)
tree009d6c3995e12855b78daa0d83d9402c1a159206 /pysite/database.py
parentMove API validation decorator to its own file #yxdk (diff)
Fix up API key validation and database api location
Diffstat (limited to 'pysite/database.py')
-rw-r--r--pysite/database.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pysite/database.py b/pysite/database.py
index 5a319ebc..3df4bbed 100644
--- a/pysite/database.py
+++ b/pysite/database.py
@@ -366,7 +366,8 @@ class RethinkDB:
"""
return self.run(
- self.query(table_name).pluck(*selectors)
+ self.query(table_name).pluck(*selectors),
+ coerce=list
)
def without(self, table_name: str, *selectors: Union[str, Dict[str, Union[List, Dict]]]):