Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -8,7 +8,7 @@ def checksum(sedol):
|
|||
tmp = sum(map(lambda ch, weight: char2value(ch) * weight,
|
||||
sedol, sedolweight)
|
||||
)
|
||||
return str((10 - (tmp % 10)) % 10)
|
||||
return str((-tmp) % 10)
|
||||
|
||||
for sedol in '''
|
||||
710889
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ def sedolCheckSumDigitLR(s):
|
|||
zip(s, [1, 3, 1, 7, 3, 9]),
|
||||
Right(0)
|
||||
)
|
||||
)(lambda d: Right(str((10 - (d % 10)) % 10)))
|
||||
)(lambda d: Right(str((-d) % 10)))
|
||||
|
||||
|
||||
# sedolValLR :: Char -> Either String Char
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue