Skip to content

Commit 5e94e2b

Browse files
committed
only use platform dimensions if app is a watchface
1 parent dffdc9d commit 5e94e2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

appstore/locker.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def jsonify_locker_app(entry):
1515
app = entry.app
1616
release = app.releases[-1] if len(app.releases) > 0 else None # type: Release
1717
assets = app.asset_collections
18+
is_watchface = app.type == "watchface"
1819

1920
return {**{
2021
'id': app.id,
@@ -44,7 +45,7 @@ def jsonify_locker_app(entry):
4445
'description': asset_fallback(assets, x.platform).description,
4546
'images': {
4647
'icon': generate_image_url(app.icon_small, 48, 48, True),
47-
'list': generate_image_url(app.icon_large, *plat_dimensions[x.platform], True),
48+
'list': generate_image_url(app.icon_large, *plat_dimensions[x.platform] if is_watchface else (144, 144), True),
4849
'screenshot': generate_image_url(asset_fallback(assets, x.platform).screenshots[0],
4950
*plat_dimensions[x.platform])
5051
}

0 commit comments

Comments
 (0)