Did I find the right examples for you? yes no

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

src/c/i/City-Go-Round-HEAD/citygoround/utils/ratings.py   City-Go-Round(Download)
from .memcache import clear_all_apps
from ..models import NamedStat
 
def rating_key_for_app(transit_app):
    return "rating-%s" % transit_app.slug
    final_rating = transit_app.average_rating_integer
    if (original_rating == 0) or (abs(original_rating - final_rating) >= 5):
        clear_all_apps()