1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Don't convert if we're given a dict, aka using get

This commit is contained in:
phxntxm 2017-03-08 00:32:55 -06:00
parent b3976c9d8a
commit 7a3e7afe33

View file

@ -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