@@ -191,9 +197,11 @@ 여기
+ {% if 30 >= start_days %}
+ {% endif %}
diff --git a/groups/views.py b/groups/views.py
index 88ddcc6..7833169 100644
--- a/groups/views.py
+++ b/groups/views.py
@@ -69,6 +69,9 @@ def certify(request, goal_id):
else: # 이하여야 성공
if float(figure) > goal.value:
achievement = False
+ if achievement:
+ user.profile.cash += 20
+ user.profile.save()
Certify.objects.create(goal=goal, user=user, created=created, text=text, image=image, figure=figure, achievement=achievement)
return redirect('groups:main', goal_id)
return render(request, 'groups/certify.html', {'goal': goal})