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
24549c40
Commit
24549c40
authored
3 years ago
by
borzechof99
Browse files
Options
Downloads
Patches
Plain Diff
Fix Linter
parent
24b8ff76
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pylintrc
+1
-0
1 addition, 0 deletions
.pylintrc
unisportomat/quiz/management/commands/seed_db.py
+13
-10
13 additions, 10 deletions
unisportomat/quiz/management/commands/seed_db.py
with
14 additions
and
10 deletions
.pylintrc
+
1
−
0
View file @
24549c40
...
...
@@ -10,4 +10,5 @@ disable=line-too-long,
arguments-differ,
invalid-name,
no-else-raise,
arguments-renamed,
This diff is collapsed.
Click to expand it.
unisportomat/quiz/management/commands/seed_db.py
+
13
−
10
View file @
24549c40
...
...
@@ -133,11 +133,12 @@ class Command(BaseCommand):
),
(
"
Mache vor der nächsten Frage 3 Jumping Jacks
"
,
"
Do Three Jumping Jacks.
"
),
]
image
=
SimpleUploadedFile
(
name
=
"
test_image.png
"
,
content
=
open
(
"
quiz/fixtures/images/test_image.png
"
,
"
rb
"
).
read
(),
content_type
=
"
image/png
"
,
)
with
open
(
"
quiz/fixtures/images/test_image.png
"
,
"
rb
"
)
as
read_file
:
image
=
SimpleUploadedFile
(
name
=
"
test_image.png
"
,
content
=
read_file
.
read
(),
content_type
=
"
image/png
"
,
)
for
text
in
calls_to_move
:
activate
(
"
de
"
)
...
...
@@ -161,11 +162,13 @@ class Command(BaseCommand):
"
That proper training prevents heart disease?
"
,
),
]
image
=
SimpleUploadedFile
(
name
=
"
logo.png
"
,
content
=
open
(
"
quiz/fixtures/images/logo.png
"
,
"
rb
"
).
read
(),
content_type
=
"
image/png
"
,
)
with
open
(
"
quiz/fixtures/images/logo.png
"
,
"
rb
"
)
as
read_file
:
image
=
SimpleUploadedFile
(
name
=
"
logo.png
"
,
content
=
read_file
.
read
(),
content_type
=
"
image/png
"
,
)
for
text
in
knowledge_snacks
:
activate
(
"
de
"
)
k_s
=
KnowledgeSnack
(
text
=
text
[
0
],
image
=
image
)
...
...
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