Skip to content

Commit

Permalink
profile error corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
mittal-ishaan committed Oct 1, 2023
1 parent 28f444b commit 70932c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,11 @@ def profile(request):
allocation_info = "Allocation ID: " + allocation.student_id + " Caterer: " + allocation.caterer.name + " High Tea: " + str(allocation.high_tea) + " Jain: " + str(allocation.jain)
else:
allocation_info = "Not allocated for this period"
if len(socialaccount_obj):
try:
if len(socialaccount_obj ):
picture = socialaccount_obj[0].extra_data['picture']
except:
picture = "not available"
# if request.method == "POST" and request.user.is_authenticated:
# try:
# student = Student.objects.get(email=str(request.user.email))
Expand Down

0 comments on commit 70932c3

Please sign in to comment.