Skip to content

Commit 79ff3bf

Browse files
committed
Formatting
1 parent 53b5b52 commit 79ff3bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rushdb/api/records.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,11 @@ def find(
474474
data=typing.cast(typing.Dict[str, typing.Any], search_query or {}),
475475
headers=headers,
476476
)
477-
return [Record(self.client, record) for record in response.get("data")], response.get('total')
477+
return [
478+
Record(self.client, record) for record in response.get("data")
479+
], response.get("total") or 0
478480
except Exception:
479-
return []
481+
return [], 0
480482

481483
def import_csv(
482484
self,

0 commit comments

Comments
 (0)