Compare commits

...

1 Commits

Author SHA1 Message Date
Aiirondev_dev 514065f4af fixe of a list error
Release Inventarsystem / release-docker (push) Successful in 3m7s
2026-08-16 12:58:31 +02:00
+2 -2
View File
@@ -2177,7 +2177,7 @@ def _upload_student_cards_excel():
client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
try:
db = client[cfg.MONGODB_DB]
student_cards = db['student_cards']
student_cards = list(db['student_cards'].find())
existing_ids.update(
str(card.get('AusweisId', '')).strip().upper()
for card in student_cards.find({}, {'AusweisId': 1})
@@ -4126,7 +4126,7 @@ def student_cards_admin():
return render_template(
'student_cards_admin.html',
student_cards=student_cards,
student_cards=all_cards,
edit_mode=edit_mode,
form_data=form_data,
available_classes=available_classes,