Skip to content

Commit

Permalink
chore: remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Apr 6, 2024
1 parent 5fa0995 commit 9fcc0f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion backend/api/models/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ class ExtraCheck(models.Model):
@receiver(post_save, sender=ExtraCheck)
@receiver(pre_delete, sender=ExtraCheck)
def run_checks(sender, instance: ExtraCheck, **kwargs):
print("Hoi", flush=True)
# TODO: Use querysets
for group in instance.project.groups.all():
submissions = group.submissions.order_by("submission_time")
Expand Down
1 change: 1 addition & 0 deletions backend/api/serializers/checks_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Meta:
def validate(self, attrs):
data = super().validate(attrs)

# TODO: Doesn't allow PATCH
if "docker_image" not in data:
# TODO: translation
raise serializers.ValidationError("docker_image is required")
Expand Down

0 comments on commit 9fcc0f6

Please sign in to comment.