From 7fd27e8c02ab5549591dfa2d1b5d15efc21afed4 Mon Sep 17 00:00:00 2001 From: Aiirondev Date: Sun, 5 Jul 2026 12:02:57 +0200 Subject: [PATCH] additional changes to account for legacy Item Types --- Web/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} }