diff --git a/config.ini b/config.ini index d35aa258..8f265869 100644 --- a/config.ini +++ b/config.ini @@ -1,12 +1,12 @@ [General] -DB_ROOT = -APP_DB_ROOT = -MAIN_DIR = -LOG_DIR = +DB_ROOT = /home/christoph/Calibre-Bibliothek_test +APP_DB_ROOT = /home/christoph/computer/calibre-web +MAIN_DIR = /home/christoph/computer/calibre-web +LOG_DIR = /home/christoph/computer/calibre-web PORT = 8083 NEWEST_BOOKS = 60 [Advanced] TITLE_REGEX = ^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)\s+ -DEVELOPMENT = 0 +DEVELOPMENT = 1 PUBLIC_REG = 0 -UPLOADING = 0 +UPLOADING = 1 diff --git a/cps/templates/edit_book.html b/cps/templates/edit_book.html index 846175ee..bdbc2272 100644 --- a/cps/templates/edit_book.html +++ b/cps/templates/edit_book.html @@ -67,18 +67,13 @@ {% endif %} - {% if c.datatype == ('rating' or 'float' or 'int') %} - 0 %} {% for column in book['custom_column_' ~ c.id] %} - value="{{ column.value }}{% if not loop.last %}, {% endif %}{% endfor %}"{% endif %}> + value="{{ column.value }}{% if not loop.last %}, {% endif %} + {% endfor %}" + {% endif %}> {% endif %} {% endfor %}