~michael.nelson/ubuntu-webcatalog/985446-remove-commercial-apps-too

« back to all changes in this revision

Viewing changes to src/webcatalog/views.py

[r=achuni,nessita] Remove dup apps-per-series and don't let import_app_install_data overwrite sca-imported apps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
 
232
232
 
233
233
def application_reviews(request, package_name, distro, ajax=False, page=1):
234
 
    # XXX 2012-05-25 bug=1002262 michaeln Multiple apps for distroseries.
235
 
    # It seems that we have a few applications which are present in
236
 
    # multiple archives for the same distroseries (skype,
237
 
    # unity-lens-utilities, probably via a myapps PPA as well as extras?).
238
 
    # Don't break when this happens.
239
 
    apps = get_list_or_404(Application, package_name=package_name,
240
 
                           distroseries__code_name=distro)
241
 
    app = apps[0]
 
234
    app = get_object_or_404(Application, package_name=package_name,
 
235
                            distroseries__code_name=distro)
242
236
 
243
237
    # XXX michaeln 2011-09-15 bug=851662 Better review language options.
244
238
    reviews = WebServices().get_reviews_for_package(