Skip to content

Commit

Permalink
made some small changes regarding correction in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
harshuln123 committed Jan 14, 2025
1 parent feca56e commit 799c7ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions FusionIIIT/applications/academic_procedures/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def academic_procedures_student(request):
final_registration_date_flag = get_final_registration_eligibility(current_date)
add_or_drop_course_date_flag = get_add_or_drop_course_date_eligibility(current_date)
swayam_registration_flag = get_swayam_registration_eligibility(current_date, user_sem, year)
drop_date_flag = get_drop_course_date_eligibility(current_date, year)
drop_date_flag = get_drop_course_date_eligibility(current_date, user_sem, year)
pre_registration_flag = False
final_registration_flag = False

Expand Down Expand Up @@ -1448,9 +1448,9 @@ def get_swayam_registration_eligibility(current_date, user_sem, year):
except Exception as e:
return False

def get_drop_course_date_eligibility(current_date, year):
def get_drop_course_date_eligibility(current_date, user_sem, year):
try:
drop_course_date = Calendar.objects.all().filter(description=f"drop course date {year}").first()
drop_course_date = Calendar.objects.all().filter(description=f"Drop course {user_sem} {year}").first()
drop_start_date = drop_course_date.from_date
drop_end_date = drop_course_date.to_date
if current_date>=drop_start_date and current_date<=drop_end_date:
Expand Down
6 changes: 0 additions & 6 deletions FusionIIIT/templates/academic_procedures/swayamregister.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<center><b>Swayam Registration</b></center>

<div class="ui vertical segment">
<!-- {% if curr_sem.semester_no != 8 %} -->
{% if swayam_registration_flag == True %}
<form id="swayam_reg_form" class="ui form" action = "/academic-procedures/api/stu/swayam_add_course/" method = "post">
{% csrf_token %}
Expand Down Expand Up @@ -61,11 +60,6 @@
<p style="color: red"> Swayam Registration Date is yet to come </p>
</CENTER>
{% endif %}
<!-- {% else %}
<CENTER>
<p style="color: red"> You are not Eligible for Registration !! </p>
</CENTER>
{% endif %} -->
</div>
{% endblock %}

Expand Down

0 comments on commit 799c7ed

Please sign in to comment.