File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1010
1111
1212class ConvertISBN10to13Job (olclient .AbstractBotJob ):
13-
1413 def run (self ) -> None :
1514 """Looks for any ISBN 10s to convert to 13"""
1615 self .write_changes_declaration ()
@@ -48,14 +47,15 @@ def run(self) -> None:
4847 isbns_13 .append (isbn_13 )
4948
5049 if len (isbns_13 ) > 1 :
51- isbns_13 = dedupe (isbns_13 ) # remove duplicates, shouldn't normally be necessary
50+ isbns_13 = dedupe (
51+ isbns_13
52+ ) # remove duplicates, shouldn't normally be necessary
5253
53- setattr (edition , 'isbn_13' , isbns_13 )
54- self .logger .info (
55- "\t " .join ([olid , str (isbns_10 ), str (isbns_13 )])
56- )
54+ setattr (edition , "isbn_13" , isbns_13 )
55+ self .logger .info ("\t " .join ([olid , str (isbns_10 ), str (isbns_13 )]))
5756 self .save (lambda : edition .save (comment = comment ))
5857
58+
5959def dedupe (input_list : list ) -> list :
6060 """Remove duplicate elements in a list and return the new list"""
6161 output = []
You can’t perform that action at this time.
0 commit comments