From 5afe05b2d2bfa865913f3483f20f8fa9f663c2b0 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Sat, 18 Jul 2026 12:20:20 +0200 Subject: [PATCH] changes to the Library Items Types wich caused some Issues with the right displayment --- Web/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/app.py b/Web/app.py index 8a61405..141a370 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', 'Buch', 'Schulbuch', 'schulbuch') +LIBRARY_ITEM_TYPES = ('book', 'cd', 'dvd', 'schoolbook', 'Buch', 'Schulbuch', 'schulbuch') INVOICE_CURRENCY = 'EUR' NOTIFICATION_STATUS_CACHE_TTL = max(3, int(os.getenv('INVENTAR_NOTIFICATION_STATUS_CACHE_TTL', '8'))) @@ -3338,7 +3338,7 @@ def api_library_items(): client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT) db = client[cfg.MONGODB_DB] student_cards = db['student_cards'] - card = student_cards.find_one({'_id': ObjectId(borrow_id)}) + card = student_cards.find_one({'_id': ObjectId(borrower)}) if borrower else None card = _decrypt_student_card_doc(card) client.close() borrower = card['SchülerName']