Skip to content

Commit

Permalink
fixes bad refactoring of balance sheet API
Browse files Browse the repository at this point in the history
  • Loading branch information
smirolo committed Apr 24, 2024
1 parent a7647df commit 4c96718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions saas/api/balances.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ class BrokerBalancesAPIView(BrokerBalancesMixin, GenericAPIView):
@extend_schema(operation_id='metrics_balances_report',
parameters=[QueryParamPeriodSerializer])
def get(self, request, *args, **kwargs):
return super(BrokerBalancesAPIView, self).get(request, *args, **kwargs)
return self.retrieve_metrics()


def retrieve_metrics(self, date_periods):
def retrieve_metrics(self):
date_periods = self.calculate_date_periods()
report = self.kwargs.get('report') # XXX Add QueryParam
unit = settings.DEFAULT_UNIT
results = []
Expand Down

0 comments on commit 4c96718

Please sign in to comment.