Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
5eca96e4
Commit
5eca96e4
authored
Feb 02, 2021
by
Fabien MAREUIL
Browse files
typo if
parent
294c3281
Pipeline
#47069
passed with stages
in 19 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/management/commands/update_mrc_files.py
View file @
5eca96e4
from
django.core.management.base
import
AppCommand
,
CommandError
from
ippidb.management.commands
import
TaskOutWrapper
from
ippidb.models
import
Chain
,
InteractFile
from
django
import
settings
from
django.core.files
import
File
from
celery
import
states
import
os
...
...
@@ -77,7 +76,7 @@ class Command(AppCommand):
storage_path
=
Chain
.
mrc_file
.
field
.
storage
.
path
(
"content/mrc_files"
)
else
:
storage_path
=
InteractFile
.
interact_file
.
field
.
storage
.
path
(
"content/interact_files"
)
if
not
os
.
path
.
exists
(
storage_path
)
if
not
os
.
path
.
exists
(
storage_path
)
:
os
.
makedirs
(
storage_path
)
list_files
=
glob
.
glob
(
os
.
path
.
join
(
mrcpath
,
pattern
))
for
data
in
list_files
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment