fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add audience and thema data to catalogue. Also: nicer cover view.
[redakcja.git]
/
src
/
depot
/
legimi.py
diff --git
a/src/depot/legimi.py
b/src/depot/legimi.py
index
86ad6e5
..
f61bbfd
100644
(file)
--- 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)),
"Year": str(date.today().year),
'GenreId': str(self.get_genre(wlbook)),
+ 'themaCategories': ';'.join(meta.thema),
+ 'thema-search': '',
'Isbn': '',
'LanguageLocale': lang_code_3to2(meta.language),
'Isbn': '',
'LanguageLocale': lang_code_3to2(meta.language),
@@
-351,7
+353,7
@@
class Legimi:
def edit(self, legimi_id, data):
current = {
'ValidationTrue': 'true',
def edit(self, legimi_id, data):
current = {
'ValidationTrue': 'true',
- 'I
s
': legimi_id
+ 'I
d
': legimi_id
}
current.update(data)
}
current.update(data)