happenings/utils/common.py
def check_weekday(year, month, day, reverse=False):
    """
    Make sure any event day we send back for weekday repeating
    events is not a weekend.
    """
    d = date(year, month, day)
    while d.weekday() in (5, 6):
        if reverse:
            d -= timedelta(days=1)
        else:
            d += timedelta(days=1)
    return d.year, d.month, d.day
def check_weekday(year, month, day, reverse=False):
    d = date(year, month, day)
    while d.weekday() in (5, 6):
        if reverse:
            d -= timedelta(days=1)
        else:
            d += timedelta(days=1)
    return d.year, d.month, d.day
def check_weekday ( year , month , day , reverse = False ) : d = date ( year , month , day ) while d . weekday ( ) in ( 5 , 6 ) : if reverse : d -= timedelta ( days = 1 ) else : d += timedelta ( days = 1 ) return d . year , d . month , d . day
Make sure any event day we send back for weekday repeating
    events is not a weekend.
Make sure any event day we send back for weekday repeating events is not a weekend .