From ca3d8323223eb1a35c0938c29ecc14b90de7db15 Mon Sep 17 00:00:00 2001 From: Joseph Chiocchi Date: Thu, 10 Nov 2022 04:42:01 -0600 Subject: [PATCH] cleanup --- dexie.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dexie.py b/dexie.py index 345888e..541c556 100644 --- a/dexie.py +++ b/dexie.py @@ -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