Loading opds_catalog/sopdscan.py +1 −1 Original line number Diff line number Diff line Loading @@ -243,7 +243,7 @@ class opdsScanner: if book_data.series_info: ser = opdsdb.addseries(book_data.series_info['title']) ser_no = book_data.series_info['index'] ser_no = book_data.series_info['index'] or '0' ser_no = int(ser_no) if ser_no.isdigit() else 0 opdsdb.addbseries(book,ser,ser_no) else: Loading opds_catalog/tests/test_scan.py +1 −1 Original line number Diff line number Diff line Loading @@ -166,5 +166,5 @@ class scanTestCase(TestCase): self.assertEquals(Book.objects.all().count(), 6) self.assertEquals(Author.objects.all().count(), 6) self.assertEquals(Genre.objects.all().count(), 5) self.assertEquals(Series.objects.all().count(), 0) self.assertEquals(Series.objects.all().count(), 1) self.assertEquals(Catalog.objects.all().count(), 2) Loading
opds_catalog/sopdscan.py +1 −1 Original line number Diff line number Diff line Loading @@ -243,7 +243,7 @@ class opdsScanner: if book_data.series_info: ser = opdsdb.addseries(book_data.series_info['title']) ser_no = book_data.series_info['index'] ser_no = book_data.series_info['index'] or '0' ser_no = int(ser_no) if ser_no.isdigit() else 0 opdsdb.addbseries(book,ser,ser_no) else: Loading
opds_catalog/tests/test_scan.py +1 −1 Original line number Diff line number Diff line Loading @@ -166,5 +166,5 @@ class scanTestCase(TestCase): self.assertEquals(Book.objects.all().count(), 6) self.assertEquals(Author.objects.all().count(), 6) self.assertEquals(Genre.objects.all().count(), 5) self.assertEquals(Series.objects.all().count(), 0) self.assertEquals(Series.objects.all().count(), 1) self.assertEquals(Catalog.objects.all().count(), 2)