Skip to content

Commit 0717104

Browse files
committed
fix: Remove unnecessary variables (close #121)
1 parent cd20183 commit 0717104

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

time_tracker_api/projects/projects_model.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,10 @@ def get_all(self, conditions: dict = None, **kwargs) -> list:
7272
active_projects = []
7373

7474
for project in projects:
75-
find = False
7675
for customer in customers:
7776
if customer in project:
78-
find = True
79-
if find:
80-
active_projects.append(project)
77+
active_projects.append(project)
78+
break
8179
return active_projects
8280

8381

0 commit comments

Comments
 (0)