Don't convert if we're given a dict, aka using get
This commit is contained in:
parent
b3976c9d8a
commit
7a3e7afe33
|
@ -201,7 +201,7 @@ async def get_content(table, key=None):
|
|||
cursor = await r.table(table).run(conn)
|
||||
if cursor is None:
|
||||
content = None
|
||||
else:
|
||||
elif type(cursor) is not dict:
|
||||
content = await _convert_to_list(cursor)
|
||||
if len(content) == 0:
|
||||
content = None
|
||||
|
|
Loading…
Reference in a new issue