Conditions | 4 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 10.75 |
Changes | 0 |
1 | """ |
||
33 | 1 | @blueprint.get('/<party_id>') |
|
34 | 1 | @templated |
|
35 | def view(party_id): |
||
36 | """Show archived party.""" |
||
37 | party = party_service.find_party(party_id) |
||
38 | if (party is None) or (party.brand_id != g.brand_id) or not party.archived: |
||
39 | abort(404) |
||
40 | |||
41 | attendee_ids = attendance_service.get_attendee_ids_for_party(party_id) |
||
42 | attendees = user_service.find_users(attendee_ids, include_avatars=True) |
||
43 | |||
44 | return { |
||
45 | 'party': party, |
||
46 | 'attendees': attendees, |
||
47 | } |
||
48 |