Fix high query load in pdf_data endpoints

This commit is contained in:
Raphael Michel
2022-07-22 17:11:49 +02:00
parent 826f1fcfa8
commit f6fa9b4b16
4 changed files with 64 additions and 23 deletions

View File

@@ -898,7 +898,7 @@ def test_checkin_only_permission(token_client, event, team, organizer, clist_all
assert resp.status_code == 200
assert resp.data['count'] > 0
# With all permissions, I can not request PDF data during checkin
# With limited permissions, I can not request PDF data during checkin
resp = _redeem(token_client, organizer, [clist_all], p.secret, {}, '?pdf_data=true')
assert resp.status_code == 201
assert not resp.data['position'].get('pdf_data')