@property
    def icon(self):
        now = datetime.now().time()
        if now < time(7) or now > time(21):
            night = '_night'
        else:
            night = ''
        return OUTLOOK_TO_ICON.get(self.outlook, 'dunno') % {'night':night}
dataset/ETHPy150Open mollyproject/mollyproject/molly/apps/weather/models.py/Weather.icon/original