Fixed subject names still having \r symbols in them and fixed student status list view not working

This commit is contained in:
Keannu Christian Bernasol 2023-08-15 14:14:26 +08:00
parent e734afd631
commit cc52931956
3 changed files with 4 additions and 4 deletions

View file

@ -58,7 +58,7 @@ def populate_subjects(sender, **kwargs):
subject_year_level = year_term[0].strip()
subject_semester = year_term[1].strip()
subject_code = row[1]
subject_name = row[2].replace("\n", " ")
subject_name = row[2].replace("\n", " ").replace("\r", "")
# Definitions of subjects to ignore
ignored_subject_codes = ['NSTP', 'ROTC', 'CWTS', 'LTS']