diff --git a/groups/templates/groups/main.html b/groups/templates/groups/main.html
index 71065c3..8988f7a 100644
--- a/groups/templates/groups/main.html
+++ b/groups/templates/groups/main.html
@@ -89,6 +89,11 @@
+
+ {% if 30 >= start_days %}
시작
{{ start_days }}
일째
@@ -100,6 +105,11 @@
참여인원: {{ member_count }}
성공
{{ success_days }}
일째
+ {% else %}
+
+
{{dates|index_1:0}} ~ {{dates|index_1:29}}
+
+ {% endif %}
@@ -181,9 +191,11 @@ 참여인원: {{ member_count }}
+ {% 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})