Ignore:
Timestamp:
14 Oct 2006, 13:19:20 (18 years ago)
Author:
joachim
Message:

fixed ticket #46

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py

    r695 r702  
    3131reserved = pa.uniqueValuesFor('student')
    3232for 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()}))
    3537    bt_list.append({'name': bt_names[bt],
    3638                    'total': total,
Note: See TracChangeset for help on using the changeset viewer.