(self, week)
Parses day of week name into week numbers.

        :param week: this parameter can be the following values:

                         sun mon tue wed thu fri sat
                         sunday monday tuesday wednesday thursday friday
                         saturday
                         weekday weekend(case insenstive)
Parses day of week name into week numbers.
Parses day of week name into week numbers .
def parse_week(self, week):
        """Parses day of week name into week numbers.

        :param week: this parameter can be the following values:

                         sun mon tue wed thu fri sat
                         sunday monday tuesday wednesday thursday friday
                         saturday
                         weekday weekend(case insenstive)
        """
        if week.lower() == "weekday":
            return "1,2,3,4,5"
        elif week.lower() == "weekend":
            return "6,0"
        else:
            week = week[:3].lower()
            return WEEK_MAP[week]
def parse_week ( self , week ) : if week . lower ( ) == "weekday" : return "1,2,3,4,5" elif week . lower ( ) == "weekend" : return "6,0" else : week = week [ : 3 ] . lower ( ) return WEEK_MAP [ week ]