def get_relative_time(date_time):
    delta = datetime.timedelta(days=7)
    current = timezone.now()
    difference = current - date_time
    if difference.total_seconds() - delta.total_seconds() > 0:
        return date_time.strftime("%b") + ' ' + str(date_time.day)
    else:
        one_day = datetime.timedelta(days=1)
        if one_day.total_seconds() - difference.total_seconds() > 0:
            return date_time.strftime("%a")
        else:
            return date_time.strftime('%I:%M %p').lstrip('0')
dataset/ETHPy150Open crowdresearch/crowdsource-platform/crowdsourcing/utils.py/get_relative_time/swapped operands of `-`