Skip to content

Commit bb568b4

Browse files
committed
Only 10 Recent Tags Displayed
1 parent 9ab658a commit bb568b4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

website/forum/templates/home.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@
9393
<div class="col-sm-12 col-md-7 col-lg-12">
9494
<div class="card pl-3 pr-5" style="background-color: inherit;border-style: none;margin-top: 4vw;margin-bottom: 1vw;">
9595
<div class="container">
96-
<h1 class="title" style="margin-left:0px;">RECursi <p class="pr-5">We are programming community of NIT Durgapur,
96+
<h1 class="title" style="margin-left:0px;">RECursion</h1>
97+
<h5 class="subtitle" style="color:#528CDD;">Programming Community of NIT Durgapur</h5>
98+
<p class="pr-5">We are programming community of NIT Durgapur,
9799
with focus on Improving Coding culture institute wide by conducting regular lectures from beginner to advance topics of programming, Our goal is to increse
98100
student's participation in inter-colligiate contest like
99101
ACM-ICPC and get better ranks.</p><br>

website/forum/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def list_questions(request):
170170
for i in range(limit):
171171
tags_popular_record.append(tags_popular[i][1])
172172
count=0
173-
while len(tags_recent_record)< len(taggings_recent) and len(tags_recent_record)< len(check):
173+
while len(tags_recent_record)< len(taggings_recent) and len(tags_recent_record)< len(check) and len(tags_recent_record)<10:
174174
if taggings_recent[count].tag not in tags_recent_record:
175175
tags_recent_record.append(taggings_recent[count].tag)
176176
count+=1

0 commit comments

Comments
 (0)