From 54b427ef91a7d2baac1927a3cf0bb5be6baf53cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Klepacki?= Date: Sat, 9 Jan 2021 19:43:00 +0100 Subject: [PATCH] fix --- .../homepage/__pycache__/views.cpython-37.pyc | Bin 13247 -> 13275 bytes .../templates/homepage/user_profile.html | 6 +++--- SocialHelper/homepage/views.py | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc b/SocialHelper/homepage/__pycache__/views.cpython-37.pyc index 29420378897e8a41beead459a0ed34ec761f7c3e..ff5c6da336ffa795bb8bf4d9adbbe4bbc6bc517a 100644 GIT binary patch delta 592 zcmdm=emkAliINeF0hJ4ioGF~r47EHpEH$h( zoHfi@d^J2N+;doKc}w_f*cJ%X@J?Q?8mG=$Bn#9M#hI9s6Q7@)npb&?6+|W8V#!O) zO})hq=ENIKR#uB=u9{EQq-OpGAN0%R3+Pu5p|Bhdj= zQYGM$pOToDuaKReo0?aWSX5QiIoVhvow0lJYz-CePN0&aVi3_a`ILqu{5UAmqyiqldk!7-gn(SmVwRlF}$Rt zNjDa39YSBx+{yNOdW

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))