Skip to content

Commit

Permalink
make onliner
Browse files Browse the repository at this point in the history
  • Loading branch information
Rieven committed Jun 4, 2024
1 parent d966ac0 commit cb6758a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rocky/rocky/views/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,7 @@ def hydrate_report_list(self, reports: list[Report]) -> list[HydratedReport]:

@staticmethod
def get_total_objects(reports: list[Report]) -> int:
input_objects: set = set()
for report in reports:
input_objects.add(report.input_ooi)
return len(input_objects)
return len({report.input_ooi for report in reports})

@staticmethod
def report_type_summary(reports: list[Report]) -> dict[str, int]:
Expand Down

0 comments on commit cb6758a

Please sign in to comment.