Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/b/o/bodhi-HEAD/bodhi/models/models.py   bodhi(Download)
)
 
from bodhi.util import get_age_in_days
from bodhi.models.enum import DeclEnum, EnumSymbol
from bodhi.exceptions import RPMNotFound
    def get_pushed_color(self):
        age = get_age_in_days(self.date_pushed)
        if age == 0 or self.karma < 0:
            color = '#ff0000'  # red
        elif age < 4: