Skip to content

Commit

Permalink
Update examples/reporter_demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored Sep 12, 2023
1 parent 04a482e commit 3d0cfa3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/reporter_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ def __init__(self, index):
def identify(self, requirement_or_candidate):
return requirement_or_candidate.name

def get_preference(self, identifier, resolutions, candidates, information, backtrack_causes):
def get_preference(
self,
identifier,
resolutions,
candidates,
information,
backtrack_causes,
):
return sum(1 for _ in candidates[identifier])

def find_matches(self, identifier, requirements, incompatibilities):
Expand Down

0 comments on commit 3d0cfa3

Please sign in to comment.