def homepage_promos(request): from discovery.views import get_modules platform = request.GET.get('platform') version = request.GET.get('version') modules = get_modules(request, platform, version) return jingo.render(request, 'addons/impala/homepage_promos.html', {'modules': modules})
def homepage_promos(request): from discovery.views import get_modules platform = amo.PLATFORM_DICT.get(request.GET.get("platform"), amo.PLATFORM_ALL) version = request.GET.get("version") modules = get_modules(request, platform.api_name, version) return jingo.render(request, "addons/impala/homepage_promos.html", {"modules": modules})
def homepage_promos(request): from discovery.views import get_modules platform = amo.PLATFORM_DICT.get(request.GET.get('platform'), amo.PLATFORM_ALL) version = request.GET.get('version') modules = get_modules(request, platform.api_name, version) return jingo.render(request, 'addons/impala/homepage_promos.html', {'modules': modules})
def homepage_promos(request): from discovery.views import get_modules from constants.platforms import PLATFORM_DICT platform = PLATFORM_DICT.get(request.GET.get('platform'), 'All').api_name version = request.GET.get('version') modules = get_modules(request, platform, version) return jingo.render(request, 'addons/impala/homepage_promos.html', {'modules': modules})