Skip to content
Snippets Groups Projects
Commit c005aeda authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Fix flake error with unused variable

parent 8bf700e3
No related branches found
No related tags found
No related merge requests found
Pipeline #43290 failed
......@@ -18,10 +18,10 @@ class TaskSerializer(serializers.ModelSerializer):
return data
def create(self, validated_data):
profiles = Profile.objects.filter(
role="Student").exclude(
user__email='')
# TODO: Worker timeout. Do something with outlook request limitations
# profiles = Profile.objects.filter(
# role="Student").exclude(
# user__email='')
# for profile in profiles:
# email.new_homework(profile.user, validated_data.get('deadline'))
return self.Meta.model.objects.create(**validated_data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment