changes to the get_user_by_student_card function because of a faulty update regarding the searching of the student Cars
This commit is contained in:
@@ -697,7 +697,7 @@ def get_user_by_student_card(student_card_id):
|
||||
client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
|
||||
db = _get_tenant_db(client)
|
||||
users = db['student_cards']
|
||||
found_user = users.find_one({'SchülerName': normalized})
|
||||
found_user = users.find_one({'AusweisId': normalized})
|
||||
client.close()
|
||||
|
||||
# Do not call dp.decrypt_text() here because found_user is a MongoDB dictionary.
|
||||
|
||||
Reference in New Issue
Block a user