fixe of a list error
Release Inventarsystem / release-docker (push) Successful in 3m7s

This commit is contained in:
2026-08-16 12:58:31 +02:00
parent 90da8487f2
commit 514065f4af
+2 -2
View File
@@ -2177,7 +2177,7 @@ def _upload_student_cards_excel():
client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT) client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
try: try:
db = client[cfg.MONGODB_DB] db = client[cfg.MONGODB_DB]
student_cards = db['student_cards'] student_cards = list(db['student_cards'].find())
existing_ids.update( existing_ids.update(
str(card.get('AusweisId', '')).strip().upper() str(card.get('AusweisId', '')).strip().upper()
for card in student_cards.find({}, {'AusweisId': 1}) for card in student_cards.find({}, {'AusweisId': 1})
@@ -4126,7 +4126,7 @@ def student_cards_admin():
return render_template( return render_template(
'student_cards_admin.html', 'student_cards_admin.html',
student_cards=student_cards, student_cards=all_cards,
edit_mode=edit_mode, edit_mode=edit_mode,
form_data=form_data, form_data=form_data,
available_classes=available_classes, available_classes=available_classes,