steambird/templatetags/ut_url_mapper.py
def osiris_url(course_code, calendar_year) -> str:
    """
    A template tag which resolves the params into a Osiris URL.
    Calendar Year is understood as Academic year which started in that year

    E.g. 2018 is understood as September 2018/ July 2019

    :param course_code: The course-code you are looking for. [0-9,a-z,A-Z] is possible
    :param calendar_year: int
    :return: Osiris URL for course_code in calendar_year
    """
    return "https://osiris.utwente.nl/student/OnderwijsCatalogusSelect.do" \
           "?selectie=cursus&cursus={}&collegejaar={}" \
        .format(course_code, calendar_year)

    A template tag which resolves the params into a Osiris URL.
    Calendar Year is understood as Academic year which started in that year

    E.g. 2018 is understood as September 2018/ July 2019

    :param course_code: The course-code you are looking for. [0-9,a-z,A-Z] is possible
    :param calendar_year: int
    :return: Osiris URL for course_code in calendar_year
    
A template tag which resolves the params into a Osiris URL.
Calendar Year is understood as Academic year which started in that year


A template tag which resolves the params into a Osiris URL . Calendar Year is understood as Academic year which started in that year
def osiris_url(course_code, calendar_year) -> str:
    return "https://osiris.utwente.nl/student/OnderwijsCatalogusSelect.do" \
           "?selectie=cursus&cursus={}&collegejaar={}" \
        .format(course_code, calendar_year)
def osiris_url ( course_code , calendar_year ) -> str : return "https://osiris.utwente.nl/student/OnderwijsCatalogusSelect.do" "?selectie=cursus&cursus={}&collegejaar={}" . format ( course_code , calendar_year )
A template tag which resolves the params into a Osiris URL.
A template tag which resolves the params into a Osiris URL .
"""
    A template tag which resolves the params into a Osiris URL.
    Calendar Year is understood as Academic year which started in that year

    E.g. 2018 is understood as September 2018/ July 2019

    :param course_code: The course-code you are looking for. [0-9,a-z,A-Z] is possible
    :param calendar_year: int
    :return: Osiris URL for course_code in calendar_year
    """
Osiris URL for course_code in calendar_year
Osiris URL for course_code in calendar_year
course_code
The course-code you are looking for.
The course - code you are looking for .
calendar_year
None