Ignore:
Timestamp:
23 Jan 2023, 17:12:03 (22 months ago)
Author:
Henrik Bettermann
Message:

Also some returning students are allowed to book a bed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r17304 r17312  
    196196        d['expired'] = hostels.expired
    197197        # Determine bed type
    198         entry_session = student['studycourse'].entry_session
    199         if entry_session == grok.getSite()['hostels'].accommodation_session:
    200             bt = 'fr'
    201         else:
    202             bt = 're'
     198        bt = 'all'
     199        if student.current_level >= 300:
     200            bt = 'na'
    203201        if student.sex == 'f':
    204202            sex = 'female'
Note: See TracChangeset for help on using the changeset viewer.