diff --git a/stude/courses/models.py b/stude/courses/models.py index 809ae1b..a0972f4 100644 --- a/stude/courses/models.py +++ b/stude/courses/models.py @@ -41,7 +41,7 @@ def populate_subjects(sender, **kwargs): csv_files = [f for f in os.listdir(root_path) if f.endswith('.csv')] added_courses = 0 existing_courses = 0 - print('Adding courses\n') + print('--- Adding Courses ---') for csv_file in csv_files: # The filename contains coursename filename = os.path.splitext(csv_file)[0] @@ -65,4 +65,4 @@ def populate_subjects(sender, **kwargs): added_courses += 1 print('Added', added_courses, 'courses') - print(existing_courses, 'existing courses skipped\n') + print('Skipped', existing_courses, 'already existing courses\n') diff --git a/stude/subjects/models.py b/stude/subjects/models.py index 99d5acf..d893e1a 100644 --- a/stude/subjects/models.py +++ b/stude/subjects/models.py @@ -88,7 +88,7 @@ def populate_subjects(sender, **kwargs): csv_file_path = os.path.join(root_path, csv_file) # Filename contains course of subjects filename = os.path.splitext(csv_file)[0] - print('Reading subjects from', filename) + print('---', 'Adding Subjects from', filename, '---') with open(csv_file_path, newline='') as csvfile: reader = csv.reader(csvfile)