File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def calc_check_digit(number):
64
64
# Calculate again with other weights
65
65
weights = tuple (w + 2 for w in weights )
66
66
total = sum (w * int (n ) for w , n in zip (weights , number ))
67
- return str (total % 11 )
67
+ return str (total % 11 % 10 )
68
68
69
69
70
70
def validate (number ):
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ These have been found online and should all be valid numbers.
190
190
... 22800735
191
191
... 22815333
192
192
... 23226362
193
+ ... 23246880
193
194
... 23293513
194
195
... 23505151
195
196
... 23541342
@@ -198,6 +199,7 @@ These have been found online and should all be valid numbers.
198
199
... 24976272
199
200
... 24978555
200
201
... 25042882
202
+ ... 25083040
201
203
... 25836018
202
204
... 26112972
203
205
... 26255795
@@ -279,10 +281,12 @@ These have been found online and should all be valid numbers.
279
281
... 40108625
280
282
... 40108866
281
283
... 40109173
284
+ ... 40599600
282
285
... 41399586
283
286
... 41436842
284
287
... 41475043
285
288
... 41617928
289
+ ... 41761770
286
290
... 41800368
287
291
... 41810109
288
292
... 42258617
@@ -292,12 +296,15 @@ These have been found online and should all be valid numbers.
292
296
... 42588390
293
297
... 42598807
294
298
... 43178370
299
+ ... 43328020
295
300
... 43476227
296
301
... 43518172
297
302
... 43529818
303
+ ... 43573920
298
304
... 43586656
299
305
... 43618792
300
306
... 43629317
307
+ ... 43808820
301
308
...
302
309
... '''
303
310
>>> [x for x in numbers.splitlines() if x and not edrpou.is_valid(x)]
You can’t perform that action at this time.
0 commit comments