From: Radek Czajka Date: Mon, 22 May 2023 09:03:01 +0000 (+0200) Subject: Thema upload. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c2103994301a743b0e3e620da80d795124d9ec47?hp=dd79289baf8168c654faaaa5c8e5840e3a63f94e Thema upload. --- diff --git a/src/depot/legimi.py b/src/depot/legimi.py index 86ad6e52..f61bbfd9 100644 --- a/src/depot/legimi.py +++ b/src/depot/legimi.py @@ -190,6 +190,8 @@ class Legimi: "Year": str(date.today().year), 'GenreId': str(self.get_genre(wlbook)), + 'themaCategories': ';'.join(meta.thema), + 'thema-search': '', 'Isbn': '', 'LanguageLocale': lang_code_3to2(meta.language), @@ -351,7 +353,7 @@ class Legimi: def edit(self, legimi_id, data): current = { 'ValidationTrue': 'true', - 'Is': legimi_id + 'Id': legimi_id } current.update(data)