Changeset 17700


Ignore:
Timestamp:
19 Feb 2024, 10:53:12 (7 months ago)
Author:
Henrik Bettermann
Message:

Update all course parameters including course titles but except passmark.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po

    r17627 r17700  
    209209msgid "Custom Float 1 (not used)"
    210210msgstr "Cutoff JAMB Score"
     211
     212msgid "Update all course parameters including course titles."
     213msgstr "Update all course parameters including course titles but except passmark."
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r17653 r17700  
    400400        return
    401401
     402    def updateCourseTicket(self, ticket, course):
     403        """Updates a course ticket object and return code
     404        if ticket has been invalidated. AAUE: Do not update passmark
     405        """
     406        if not course:
     407            if ticket.title.endswith('cancelled)'):
     408                # Skip this tiket
     409                return
     410            # Invalidate course ticket
     411            ticket.title += u' (course cancelled)'
     412            ticket.credits = 0
     413            ticket.passmark = 0
     414            return ticket.code
     415        ticket.code = course.code
     416        ticket.title = course.title
     417        ticket.fcode = course.__parent__.__parent__.__parent__.code
     418        ticket.dcode = course.__parent__.__parent__.code
     419        ticket.credits = course.credits
     420        # ticket.passmark = course.passmark
     421        ticket.semester = course.semester
     422        return
     423
    402424CustomStudentStudyLevel = attrs_to_fields(
    403425    CustomStudentStudyLevel, omit=[
Note: See TracChangeset for help on using the changeset viewer.