show 9 instead of 6 apps on mobile (bug 840382)
This commit is contained in:
Родитель
db2c30d415
Коммит
3e26ca1d0d
|
@ -19,7 +19,7 @@ def home(request):
|
|||
MOBILE = request.MOBILE and not request.TABLET
|
||||
region = getattr(request, 'REGION', mkt.regions.WORLDWIDE)
|
||||
featured = Webapp.featured(region=region, cat=None, mobile=False,
|
||||
limit=6 if MOBILE else 12)
|
||||
limit=9 if MOBILE else 12)
|
||||
|
||||
featured_cnt = len(featured)
|
||||
|
||||
|
|
|
@ -523,7 +523,7 @@ class Webapp(Addon):
|
|||
return datetime.date.today()
|
||||
|
||||
@classmethod
|
||||
def featured(cls, cat=None, region=None, limit=6, mobile=False,
|
||||
def featured(cls, cat=None, region=None, limit=9, mobile=False,
|
||||
gaia=False):
|
||||
qs = FeaturedApp.objects.featured(cat, region, limit, mobile, gaia)
|
||||
return [w.app for w in qs]
|
||||
|
|
Загрузка…
Ссылка в новой задаче