~canonical-ca-hackers/ubuntu-webcatalog/trunk

« back to all changes in this revision

Viewing changes to src/webcatalog/management/commands/import_ratings_stats.py

  • Committer: Tarmac
  • Author(s): Stephen Stewart
  • Date: 2014-06-03 17:23:05 UTC
  • mfrom: (196.1.2 update-global-header)
  • Revision ID: tarmac-20140603172305-pm47ffgj64p5pw77
[r=fgallina,jonas-drange] update global nav content

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        apps = apps.order_by('package_name')
77
77
 
78
78
        for app in apps:
79
 
            if not app.package_name in stats_dict:
 
79
            if app.package_name not in stats_dict:
80
80
                continue
81
81
            stat = stats_dict[app.package_name]
82
82
            app.ratings_average = stat.ratings_average