Ignore:
Timestamp:
21 Jan 2011, 12:16:53 (14 years ago)
Author:
Henrik Bettermann
Message:

Enable allocation of reserved bed spaces in SSE hostels (with special handling).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/allocate_reserved_bed.py_old_version

    r5624 r5653  
    7575            psm = "Student %s has already reserved bed %s" % (sid, already[0].bed)
    7676            break
    77         if not bed_brain.bed_type.endswith("reserved"):
     77        if not "reserved" in bed_brain.bed_type:
    7878            psm = "%s is not a reserved bed" % bid
    7979            break
     
    9393            psm = "Student %s has no reserved bed" % (sid)
    9494            break
    95         if not bed_brain.bed_type.endswith("reserved"):
     95        if not "reserved" in bed_brain.bed_type:
    9696            psm = "%s is not a reserved bed" % bid
    9797            break
Note: See TracChangeset for help on using the changeset viewer.