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
Holland Computing Center
chipathlon
Commits
b235bd88
Commit
b235bd88
authored
Jun 12, 2017
by
aknecht2
Browse files
Fixed typo in download from gridfs updated localpath to local_path.
parent
faac4939
Changes
1
Hide whitespace changes
Inline
Side-by-side
chipathlon/db.py
View file @
b235bd88
...
...
@@ -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
:
for
i
in
range
(
0
,
retries
):
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
else
:
print
"Download attempt #%s from GridFS failed, retrying..."
%
(
i
+
1
)
...
...
Write
Preview
Markdown
is supported
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