dont show cloned recipes in laters
@@ -200,7 +200,8 @@ def latest_recipes(request):
"""
# Select public recipes
- recipes = Analysis.objects.filter(project__privacy=Project.PUBLIC).order_by("-id")[:50]
+ recipes = Analysis.objects.filter(project__privacy=Project.PUBLIC, root=None).order_by("-id")[:50]
+
recipes = recipes.annotate(job_count=Count("job", filter=Q(job__deleted=False)))
context = dict(recipes=recipes, active="latest_recipes")
