Files
galaxy/scripts/api/import_library_dataset_to_history.py
T
Nicola Soranzo 21b44bf348 Fix all E201 and E202 style errors
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00

19 lines
439 B
Python

#!/usr/bin/env python
from __future__ import print_function
import os
import sys
from common import submit
try:
assert sys.argv[3]
data = {}
data['from_ld_id'] = sys.argv[3]
except IndexError:
print('usage: %s key url library_file_id' % os.path.basename(sys.argv[0]))
print(' library_file_id is from /api/libraries/<library_id>/contents/<library_file_id>')
sys.exit(1)
submit(sys.argv[1], sys.argv[2], data)