diff --git a/Web/app.py b/Web/app.py index 33ded74..3a105f4 100755 --- a/Web/app.py +++ b/Web/app.py @@ -289,7 +289,7 @@ SCHEDULER_INTERVAL = cfg.SCHEDULER_INTERVAL_MIN SSL_CERT = cfg.SSL_CERT SSL_KEY = cfg.SSL_KEY -LIBRARY_ITEM_TYPES = ['book', 'cd', 'dvd', 'other', 'schoolbook'] +LIBRARY_ITEM_TYPES = ('book', 'cd', 'dvd', 'other', 'schoolbook', 'Buch', 'Schulbuch', 'schulbuch') INVOICE_CURRENCY = 'EUR' NOTIFICATION_STATUS_CACHE_TTL = max(3, int(os.getenv('INVENTAR_NOTIFICATION_STATUS_CACHE_TTL', '8'))) @@ -3212,7 +3212,7 @@ def api_library_items(): ausleihungen_db = db['ausleihungen'] query = { - 'ItemType': {'$in': ['book', 'cd', 'dvd', 'other', 'schoolbook']}, + 'ItemType': {'$in': ['book', 'cd', 'dvd', 'other', 'schoolbook', 'schulbuch', 'Buch', 'Schulbuch']}, 'IsGroupedSubItem': {'$ne': True}, 'Deleted': {'$ne': True} }