Homepage: increase random featured assets to six.
This commit is contained in:
@@ -266,7 +266,7 @@ def get_random_featured_nodes() -> typing.List[dict]:
|
|||||||
'summary': True,
|
'summary': True,
|
||||||
'picture_square': True}},
|
'picture_square': True}},
|
||||||
{'$unwind': {'path': '$nodes_featured'}},
|
{'$unwind': {'path': '$nodes_featured'}},
|
||||||
{'$sample': {'size': 3}},
|
{'$sample': {'size': 6}},
|
||||||
{'$lookup': {'from': 'nodes',
|
{'$lookup': {'from': 'nodes',
|
||||||
'localField': 'nodes_featured',
|
'localField': 'nodes_featured',
|
||||||
'foreignField': '_id',
|
'foreignField': '_id',
|
||||||
|
Reference in New Issue
Block a user