Homepage: increase random featured assets to six.

This commit is contained in:
2019-04-10 17:19:31 +02:00
parent 049fdf3b63
commit 468fc85751

View File

@@ -266,7 +266,7 @@ def get_random_featured_nodes() -> typing.List[dict]:
'summary': True,
'picture_square': True}},
{'$unwind': {'path': '$nodes_featured'}},
{'$sample': {'size': 3}},
{'$sample': {'size': 6}},
{'$lookup': {'from': 'nodes',
'localField': 'nodes_featured',
'foreignField': '_id',