Skip to content

Commit

Permalink
next fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoGoddet committed Mar 14, 2022
1 parent 5bdc3cc commit 6344a72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions mis_builder/models/aep.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,7 @@ def _get_balances(cls, mode, companies, date_from, date_to):
aep.parse_expr(expr)
aep.done_parsing()
aep.do_queries(date_from, date_to)
from pprint import pprint

pprint(aep._data)
return aep._data[((), mode)].get(UNCLASSIFIED_ROW_DETAIL, {})
# to keep compatibility, we give the UNCLASSIFIED_ROW_DETAIL
# (expecting that auto_expand_col_names=None was given to do_queries )
Expand Down
4 changes: 1 addition & 3 deletions mis_builder/tests/test_aep.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,10 @@ def _eval(self, expr):
def _eval_by_account_id(self, expr):
res = {}
eval_dict = {"AccountingNone": AccountingNone}
from pprint import pprint

for account_id, replaced_exprs in self.aep.replace_exprs_by_account_id([expr]):
pprint(account_id)
pprint(replaced_exprs)
res[account_id] = safe_eval(replaced_exprs[0], eval_dict)

return res

def _eval_by_rdi(self, expr):
Expand Down

0 comments on commit 6344a72

Please sign in to comment.