Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
c005aeda
Commit
c005aeda
authored
2 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Fix flake error with unused variable
parent
8bf700e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#43290
failed
2 years ago
Stage: Test and Flake8
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/homework/serializers.py
+3
-3
3 additions, 3 deletions
src/homework/serializers.py
with
3 additions
and
3 deletions
src/homework/serializers.py
+
3
−
3
View file @
c005aeda
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment