'liked' field in api book lists + fix for tests
[wolnelektury.git] / src / catalogue / constants.py
index c16e3f7..60ceceb 100644 (file)
@@ -17,6 +17,9 @@ LICENSES = {
 LICENSES['http://creativecommons.org/licenses/by-sa/3.0/deed.pl'] = \
     LICENSES['http://creativecommons.org/licenses/by-sa/3.0/']
 
+for license, data in LICENSES.items():
+    LICENSES[license.replace('http://', 'https://')] = data
+
 # Those will be generated only for books with own HTML.
 EBOOK_FORMATS_WITHOUT_CHILDREN = ['txt', 'fb2']
 # Those will be generated for all books.