Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
daca3632
Commit
daca3632
authored
1 year ago
by
ml bonhomme
Browse files
Options
Downloads
Patches
Plain Diff
Path settings.PONOS_DATA_DIR
parent
5f7cf4ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/ponos/tasks.py
+1
-1
1 addition, 1 deletion
arkindex/ponos/tasks.py
with
1 addition
and
1 deletion
arkindex/ponos/tasks.py
+
1
−
1
View file @
daca3632
...
...
@@ -105,7 +105,7 @@ def download_extra_files(task) -> None:
resp
.
raise_for_status
()
# Write file to a specific data directory
extra_files_dir
=
settings
.
PONOS_DATA_DIR
/
"
extra_files
"
extra_files_dir
=
Path
(
settings
.
PONOS_DATA_DIR
)
/
"
extra_files
"
extra_files_dir
.
mkdir
(
exist_ok
=
True
)
with
open
(
extra_files_dir
/
path_name
,
"
wb
"
)
as
f
:
for
chunk
in
resp
.
iter_content
(
chunk_size
=
8192
):
...
...
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