Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdnum/jp/in_.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def calc_check_digit(number: str) -> str:
"""Calculate the check digit. The number passed should not have
the check digit included."""
weights = (6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2)
s = sum(w * int(n) for w, n in zip(weights, number)) % 11
s = sum(w * int(n) for w, n in zip(weights, number))
return str(-s % 11 % 10)


Expand Down
Loading