Skip to content

Commit

Permalink
Fixed Styling Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutvikrj26 committed Apr 9, 2024
1 parent ba72f71 commit 3411cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions physionet-django/training/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def update_last_completed_order(self, completed_content_or_quiz):
self.last_completed_order = completed_content_or_quiz.order
self.save()


class CompletedContent(models.Model):
"""
Model representing a completed content block.
Expand Down
2 changes: 1 addition & 1 deletion physionet-django/training/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def course_details(request, training_slug):
except json.decoder.JSONDecodeError:
messages.error(request, 'JSON file is not properly formatted.')
return redirect("courses")

# Checking if a course with the same name already exists
existing_course = Course.objects.filter(training_type__name=file_data['name'])
if existing_course.exists():
Expand Down

0 comments on commit 3411cdf

Please sign in to comment.