diff --git a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc b/SocialHelper/homepage/__pycache__/views.cpython-37.pyc
index 2942037..ff5c6da 100644
Binary files a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc and b/SocialHelper/homepage/__pycache__/views.cpython-37.pyc differ
diff --git a/SocialHelper/homepage/templates/homepage/user_profile.html b/SocialHelper/homepage/templates/homepage/user_profile.html
index 29b6354..1af2db0 100644
--- a/SocialHelper/homepage/templates/homepage/user_profile.html
+++ b/SocialHelper/homepage/templates/homepage/user_profile.html
@@ -12,8 +12,8 @@
Profil użytkownika
{{ name }}
-
Średnia Ocena: {{ocena}}
-
0
+ Średnia Ocena: {{ocena_2}}
+
1
{% if ocena > 9 %}
@@ -64,7 +64,7 @@
{% else %}
- {% endif %} 100
+ {% endif %} 10
{% if user.email %}
{% endif %}
diff --git a/SocialHelper/homepage/views.py b/SocialHelper/homepage/views.py
index 9903345..0c8e4d0 100644
--- a/SocialHelper/homepage/views.py
+++ b/SocialHelper/homepage/views.py
@@ -458,11 +458,13 @@ def user_profile(request, user_name):
ocena = int (ocena)
else:
ocena = 50
+ ocena_2 = ocena/10
context = {
'all_product': all_product,
'all_oceny': oceny,
'ocena': ocena,
'name': user_prof.email,
+ 'ocena_2': ocena_2,
}
return HttpResponse(template.render(context, request))