Changeset 702 for WAeUP_SRP/trunk/skins/waeup_accommodation
- Timestamp:
- 14 Oct 2006, 13:19:20 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py
r695 r702 31 31 reserved = pa.uniqueValuesFor('student') 32 32 for bt in bed_types: 33 total = len(pa(bed_type=bt)) 34 free = len(pa.searchResults({'bed_type': bt,'student':reserved})) 33 total = len(pa(bed_type=bt,hall=context.getId())) 34 free = len(pa.searchResults({'bed_type': bt, 35 'student':reserved, 36 'hall': context.getId()})) 35 37 bt_list.append({'name': bt_names[bt], 36 38 'total': total,
Note: See TracChangeset for help on using the changeset viewer.