Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
check.py quibbles
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalogh committed Mar 19, 2010
1 parent 3bce720 commit 780161b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/addons/helpers.py
Expand Up @@ -80,5 +80,5 @@ def contribution(addon, text='', src='', show_install=False, show_help=True):
'show_install': show_install,
'show_help': show_help,
'has_suggested': bool(addon.suggested_amount),
'pledge': pledge
'pledge': pledge,
}))
6 changes: 2 additions & 4 deletions apps/addons/views.py
Expand Up @@ -10,7 +10,6 @@
from amo import urlresolvers
from amo.urlresolvers import reverse

from addons.models import Addon
from bandwagon.models import Collection, CollectionFeature, CollectionPromo
from users.models import UserProfile
from stats.models import GlobalStat
Expand Down Expand Up @@ -42,15 +41,14 @@ def addon_detail(request, addon_id):
return http.HttpResponsePermanentRedirect(reverse(
'addons.detail', args=[addon_id]))


addon.is_searchengine = (addon.type == amo.ADDON_SEARCH)

# source tracking
src = request.GET.get('src', 'addondetail')

# get satisfaction only supports en-US
lang = translation.to_locale(translation.get_language())
addon.has_satisfaction = (lang=='en_US' and
addon.has_satisfaction = (lang == 'en_US' and
addon.get_satisfaction_company)

# other add-ons from the same author(s)
Expand Down Expand Up @@ -94,7 +92,7 @@ def addon_detail(request, addon_id):

'collections': popular_coll,
'other_collection_count': other_coll_count,
'user_collections': user_collections
'user_collections': user_collections,
}
return jingo.render(request, 'addons/details.html', data)

Expand Down
1 change: 0 additions & 1 deletion apps/files/models.py
Expand Up @@ -5,7 +5,6 @@

import amo.models
from versions.models import Version
from translations.fields import TranslatedField


class File(amo.models.ModelBase):
Expand Down

0 comments on commit 780161b

Please sign in to comment.