From 2aee36cc9257864e7012ff4f7b6fe8a02a99a8b3 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Tue, 28 Jul 2026 21:23:21 +0200 Subject: [PATCH] Updates to the Update Group logic to have a cleaner output --- Web/app.py | 4 ++++ Web/templates/library_table.html | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Web/app.py b/Web/app.py index 9d628e6..c759d06 100755 --- a/Web/app.py +++ b/Web/app.py @@ -6737,6 +6737,8 @@ def update_group(): {'$set': shared_update} ) + app.logger.debug(f"Individual Codes: {individual_items}") + # B. Apply Unique Codes to specific items # We iterate through the provided list to update the specific code for each ID for item in individual_items: @@ -6750,6 +6752,8 @@ def update_group(): ) client.close() + app.logger.debug("Success When Updating the Item") + flash("Objecte wurden erfolgreich Bearbeitet", "success") return jsonify({'success': True, 'message': 'Gruppe und individuelle Codes aktualisiert'}) except Exception as e: diff --git a/Web/templates/library_table.html b/Web/templates/library_table.html index 2a629e6..6296c5b 100644 --- a/Web/templates/library_table.html +++ b/Web/templates/library_table.html @@ -1371,7 +1371,8 @@ await loadLibraryItems(); // Daten neu laden // renderTable(); // Ggf. Tabelle neu rendern } else { - alert('Fehler: ' + result.message); + closeEditLibraryModal(); + await loadLibraryItems(); } } catch (error) { console.error('Update failed:', error); @@ -1451,14 +1452,14 @@
Gruppen-Range (Total: )
- +

Alle Codes in dieser Gruppe:

- +
- +
Hinweis: Änderungen an Titel/Ort/Beschreibung werden auf alle Exemplare der Range übertragen.