Skip to content

Commit

Permalink
fix: parse binary response
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Boros <[email protected]>
  • Loading branch information
gabor-boros committed Jul 4, 2022
1 parent 2c5951a commit abbefd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rethinkdb/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def convert_pseudo_type(self, obj: Dict[str, Any]) -> Any:
None: lambda x: x,
"GEOMETRY": lambda x: x,
"BINARY": lambda x: self.__convert_pseudo_type(
x, "binary_format", self.convert_time
x, "binary_format", self.convert_binary
),
"GROUPED_DATA": lambda x: self.__convert_pseudo_type(
x, "group_format", self.convert_grouped_data
Expand Down
2 changes: 1 addition & 1 deletion rethinkdb/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def get_json_decoder(self, query):
"""
Return the related json decoder.
"""
return (query.json_decoder or self._json_decoder)(query.kwargs)
return (query.json_decoder or self._json_decoder)(reql_format_opts=query.kwargs)

def get_json_encoder(self, query):
"""
Expand Down

0 comments on commit abbefd7

Please sign in to comment.