Skip to content

Commit

Permalink
weights can only be int
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Dec 9, 2023
1 parent 1517643 commit 45bb8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion competition/utils/sum_methods.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from competition.models import EventRegistration, Solution


def dot_product(solutions: list[int], weights: list[int | float]):
def dot_product(solutions: list[int], weights: list[int]):
return sum(s*w for s, w in zip(solutions, weights))


Expand Down

0 comments on commit 45bb8b3

Please sign in to comment.