10 featured/latest items

This commit is contained in:
2016-11-24 18:12:38 +01:00
parent 85bfbdb5e3
commit f99869f57e

View File

@@ -728,7 +728,7 @@ def project_update_nodes_list(node, project_id=None, list_name='latest'):
node_list_name = 'nodes_' + list_name node_list_name = 'nodes_' + list_name
project[node_list_name] = [] project[node_list_name] = []
nodes_list = project[node_list_name] nodes_list = project[node_list_name]
elif len(nodes_list) > 5: elif len(nodes_list) > 10:
nodes_list.pop(0) nodes_list.pop(0)
if node._id in nodes_list: if node._id in nodes_list: