Random asset bug fix: If 2 assets from the same project where returned, the second one would get a corrupt url

This commit is contained in:
2018-10-04 10:11:38 +02:00
parent c81711de53
commit a9848c3fad
2 changed files with 6 additions and 5 deletions

View File

@@ -309,8 +309,6 @@ def get_random_featured_nodes() -> typing.List[dict]:
node = Node(node_document)
node.picture = get_file(node.picture, api=api)
node.url = url_for_node(node=node)
node.project.url = url_for('projects.view', project_url=node.project.url)
node.project.picture_square = get_file(node.project.picture_square, api=api)
featured_node_documents.append(node)