Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-Jess committed Nov 17, 2024
1 parent 42b84a2 commit 489f99b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/laundry/management/commands/update_laundry_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def handle(self, *args, **kwargs):
if room_request_json is None:
return

Check warning on line 46 in backend/laundry/management/commands/update_laundry_rooms.py

View check run for this annotation

Codecov / codecov/patch

backend/laundry/management/commands/update_laundry_rooms.py#L46

Added line #L46 was not covered by tests
# count washers and dryers
room["count_washers"] = len([machine for machine in room_request_json if machine["isWasher"]])
room["count_dryers"] = len([machine for machine in room_request_json if machine["isDryer"]])
room["count_washers"] = len(
[machine for machine in room_request_json if machine["isWasher"]]
)
room["count_dryers"] = len(
[machine for machine in room_request_json if machine["isDryer"]]
)

write_file(laundry_rooms)

0 comments on commit 489f99b

Please sign in to comment.