Skip to content

Commit

Permalink
fix: Linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Feb 15, 2022
1 parent 42cdd6d commit fec40aa
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,9 @@ def get_accounts(root_type, companies):
added_accounts = []

for company in companies:
for account in frappe.db.sql(""" select name, is_group, company,
parent_account, lft, rgt, root_type, report_type, account_name, account_number
from
`tabAccount` where company = %s and root_type = %s
""" , (company, root_type), as_dict=1):
for account in frappe.get_all("Account", fields=["name", "is_group", "company",
"parent_account", "lft", "rgt", "root_type", "report_type", "account_name", "account_number"],
filters={"company": company, "root_type": root_type}):
if account.account_name not in added_accounts:
accounts.append(account)
added_accounts.append(account.account_name)
Expand Down

0 comments on commit fec40aa

Please sign in to comment.