fix
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 9 Oct 2023 13:49:47 +0000 (15:49 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 9 Oct 2023 13:49:47 +0000 (15:49 +0200)
src/depot/publishers/legimi.py

index 6802d14..e6fe5b5 100644 (file)
@@ -261,7 +261,7 @@ class Legimi(BasePublisher):
                 site_book.external_id = legimi_id
                 site_book.save(update_fields=['external_id'])
 
-        self.edit_sale(book)
+        self.edit_sale(site_book)
 
     def get_genre(self, wlbook):
         if wlbook.meta.legimi and wlbook.meta.legimi in self.CATEGORIES: