Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yyolk committed Nov 10, 2022
1 parent efa71f7 commit ca3d832
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dexie.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,9 @@ def convert(self, value):

# sometimes we do need to inject more data like HistoricalTrades
# which doesn't just have a single key with all the data
# we could detect it here, but we can maybe also pass the req_def
# we wrap our data with our model_cls
# remove the response success key, which we no longer need
model_data = {k: data[k] for k in data if k != "success"}
# we wrap our data with our model_cls
return self._model_cls(**model_data)

return data
Expand Down

0 comments on commit ca3d832

Please sign in to comment.