Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipathlon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Holland Computing Center
chipathlon
Commits
b235bd88
Commit
b235bd88
authored
7 years ago
by
aknecht2
Browse files
Options
Downloads
Patches
Plain Diff
Fixed typo in download from gridfs updated localpath to local_path.
parent
faac4939
No related branches found
Branches containing commit
No related tags found
1 merge request
!34
Resolve "Zerone"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
chipathlon/db.py
+1
-1
1 addition, 1 deletion
chipathlon/db.py
with
1 addition
and
1 deletion
chipathlon/db.py
+
1
−
1
View file @
b235bd88
...
@@ -18,7 +18,7 @@ def download_from_gridfs(host, gridfs_id, local_path, username=None, password=No
...
@@ -18,7 +18,7 @@ def download_from_gridfs(host, gridfs_id, local_path, username=None, password=No
if
not
os
.
path
.
isfile
(
local_path
)
or
overwrite
:
if
not
os
.
path
.
isfile
(
local_path
)
or
overwrite
:
for
i
in
range
(
0
,
retries
):
for
i
in
range
(
0
,
retries
):
print
"
Attempt #%s, downloading file with ID
'
%s
'
to
'
%s
'"
%
(
i
+
1
,
gridfs_id
,
local_path
)
print
"
Attempt #%s, downloading file with ID
'
%s
'
to
'
%s
'"
%
(
i
+
1
,
gridfs_id
,
local_path
)
if
mdb
.
fetch_from_gridfs
(
bson
.
objectid
.
ObjectId
(
gridfs_id
),
localpath
,
checkmd5
):
if
mdb
.
fetch_from_gridfs
(
bson
.
objectid
.
ObjectId
(
gridfs_id
),
local
_
path
,
checkmd5
):
return
True
return
True
else
:
else
:
print
"
Download attempt #%s from GridFS failed, retrying...
"
%
(
i
+
1
)
print
"
Download attempt #%s from GridFS failed, retrying...
"
%
(
i
+
1
)
...
...
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