From e4590228924bdcb69e716e4741240073e608e678 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 6 May 2022 14:08:27 +0200 Subject: [PATCH] Legimi categories. --- requirements/requirements.txt | 2 +- src/depot/legimi.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index d632365e..b8e597c3 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -10,7 +10,7 @@ python-slugify python-docx==0.8.10 Wikidata==0.6.1 -librarian==2.3.5 +librarian==2.4 ## Django Django==3.2.12 diff --git a/src/depot/legimi.py b/src/depot/legimi.py index 0a09f0b4..5fa040cb 100644 --- a/src/depot/legimi.py +++ b/src/depot/legimi.py @@ -195,16 +195,16 @@ class Legimi: def get_genre(self, wlbook): epoch_map = { - 'Starożytność': 12, - 'Średniowiecze': 16, - 'Renesans': 20, - 'Barok': 13, - 'Oświecenie': 14, - 'Romantyzm': 21, - 'Pozytywizm': 19, - 'Modernizm': 18, - 'Dwudziestolecie międzywojenne': 15, - 'Współczesność': 17, + 'Starożytność': 80, + 'Średniowiecze': 81, + 'Renesans': 82, + 'Barok': 83, + 'Oświecenie': 84, + 'Romantyzm': 85, + 'Pozytywizm': 86, + 'Modernizm': 87, + 'Dwudziestolecie międzywojenne': 88, + 'Współczesność': 90, } for epoch in wlbook.meta.epochs: -- 2.20.1