fix: linting issue

(cherry picked from commit 99b94af49ffd34bccb76b73c2f06187540444a44)
This commit is contained in:
Gursheen Anand 2024-01-18 15:05:19 +05:30 committed by Mergify
parent 74613c7fe8
commit 86f3f62e00

View File

@ -134,7 +134,7 @@ def get_revenue(data, period_list, include_in_gross=1):
def remove_parent_with_no_child(data):
data_to_be_removed = False
for parent in data:
for parent in list(data):
if "is_group" in parent and parent.get("is_group") == 1:
have_child = False
for child in data: