mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
Fix the remaining 1334 flake8 errors in scripts/ . Close #391.
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
usage = "USAGE: copy_hda_to_library_folder.py <base url> <api key> <hda id> <library id> <folder id> [ message ]"
|
||||
|
||||
import os, sys
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert( 0, os.path.dirname( __file__ ) )
|
||||
from common import submit
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
def copy_hda_to_library_folder( base_url, key, hda_id, library_id, folder_id, message='' ):
|
||||
url = 'http://%s/api/libraries/%s/contents' %( base_url, library_id )
|
||||
url = 'http://%s/api/libraries/%s/contents' % ( base_url, library_id )
|
||||
payload = {
|
||||
'folder_id' : folder_id,
|
||||
'create_type' : 'file',
|
||||
@@ -19,7 +20,6 @@ def copy_hda_to_library_folder( base_url, key, hda_id, library_id, folder_id, me
|
||||
return submit( key, url, payload )
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
if __name__ == '__main__':
|
||||
num_args = len( sys.argv )
|
||||
if num_args < 6:
|
||||
|
||||
Reference in New Issue
Block a user