mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
updated javascript files
This commit is contained in:
@@ -162,6 +162,9 @@ def recipe_view(request, pk, share=None):
|
||||
servings__gt=0
|
||||
).all().aggregate(Avg('servings'))['servings__avg']
|
||||
|
||||
if not user_servings:
|
||||
user_servings = 0
|
||||
|
||||
if request.user.is_authenticated:
|
||||
if not ViewLog.objects \
|
||||
.filter(recipe=recipe) \
|
||||
|
||||
Reference in New Issue
Block a user