File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ <h1 class="text-5xl md:text-8xl font-poppins font-bold ">Learn AI-ML </h1>
2222 < p class ="p-6 max-w-lg font-bold lg:text-lg "> Become the next Algo Expert with < span class =""> Algolyzer</ span > </ p >
2323
2424 < div class ="flex gap-2 lg:gap-5 ">
25- < button class ="btn btn-sm lg:btn-md lg:btn-wide btn-outline "> Contribute</ button >
26- < button class ="btn btn-sm lg:btn-md lg:btn-wide btn-primary "> Get Started</ button >
25+ < a href =" https://github.com/priyanshu-batham/Algolyzer " class ="btn btn-sm lg:btn-md lg:btn-wide btn-outline "> Contribute</ a >
26+ < a href =" {% url 'dashboard' %} " class ="btn btn-sm lg:btn-md lg:btn-wide btn-primary "> Get Started</ a >
2727 </ div >
2828 </ div >
2929 </ div >
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ def quiz_question(request, topic_id):
114114
115115def quiz_results (request , topic_id ):
116116 topic = get_object_or_404 (Topic , id = topic_id )
117- # print(topic)
118117 quiz_progress = get_object_or_404 (QuizProgress , topic = topic , user = request .user )
119118 if not quiz_progress .completed :
120119 return redirect ("quiz_question" , topic_id = topic .id )
@@ -139,11 +138,9 @@ def quiz_results(request, topic_id):
139138 }
140139 # Add XP to the user's profile based on the topic difficulty
141140 user_profile = UserProfile .objects .get (user = request .user )
142- print (topic .difficulty )
143141 xp_to_add = (
144142 XP_REWARDS .get (topic .difficulty , 0 ) * score
145143 ) # Default to 0 if difficulty is not found
146- print (xp_to_add * score )
147144 user_profile .add_xp (xp_to_add )
148145
149146 context = {
Original file line number Diff line number Diff line change 88 <!-- Link to the main CSS file -->
99 {% load static %}
1010 < link rel ="stylesheet " href ="{% static 'output.css' %} ">
11-
11+ < link rel =" icon " type =" image/x-icon " href =" {% static 'algolyzer.png' %} " >
1212 <!-- JS scripts -->
1313 < script src ="
https://cdn.jsdelivr.net/npm/[email protected] "
> </ script > 1414 <!-- Additional head content can be added by child templates -->
5252 </ li >
5353 </ ul >
5454 </ div >
55- < a href ="{%url "home " %}" class="btn btn-ghost text-xl "> ALG</ a >
55+ < a href ="{%url "home " %}" class="btn btn-ghost text-xl ">
56+ < img alt ="home " class ='w-full h-full object-cover ' src ="{% static 'algolyzer.png' %} " />
57+ </ a >
5658 </ div >
5759 < div class ="navbar-center hidden lg:flex ">
5860
You can’t perform that action at this time.
0 commit comments