Changeset 672 for WAeUP_SRP/trunk/WAeUPTables.py
- Timestamp:
- 12 Oct 2006, 18:23:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r658 r672 85 85 return -1,"Student with Id %s already booked bed %s" % (student_id,records[0].bed) 86 86 87 records = [r for r in self.searchResults({'bed_type' : bed_type , "student": ''})]87 records = [r for r in self.searchResults({'bed_type' : bed_type}) if not r] 88 88 if len(records) == 0: 89 89 return -1,"no bed of this type available"
Note: See TracChangeset for help on using the changeset viewer.