Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
swp-unisport
team-warumkeinrust
Backend
Commits
7e2ae09b
Commit
7e2ae09b
authored
3 years ago
by
dominip89
Committed by
borzechof99
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add Comment for Readability
parent
13026170
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unisportomat/quiz/serializers.py
+1
-1
1 addition, 1 deletion
unisportomat/quiz/serializers.py
with
1 addition
and
1 deletion
unisportomat/quiz/serializers.py
+
1
−
1
View file @
7e2ae09b
...
...
@@ -156,7 +156,7 @@ class IncompleteSportSerializer(serializers.BaseSerializer):
}
for
crit
in
sport
.
criteria_ratings
.
iterator
():
# Asking this way to save an indentation and for readability. Would also work when asking for = -1 and handling the append then.
if
sport
.
get_rating
(
crit
)
!=
-
1
:
continue
...
...
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