Commit e021816c authored by Franziska Koehn's avatar Franziska Koehn
Browse files

host without slash

parent 4f346369
......@@ -12,26 +12,6 @@ import xsa.datatypereader as datatypereader
from requests.auth import HTTPBasicAuth
# root_element = 'xnat:mrScanData'
# constraints = [
# ('xnat:mrScanData/TYPE', 'LIKE', '%t2%'),
# ('xnat:mrScanData/PARAMETERS_FLIP', '>=', '10'),
# 'AND',
# [('xnat:mrScanData/PARAMETERS_TE', '>', '2.0'),
# ('xnat:mrScanData/PARAMETERS_TE', '<', '2.0'),
# 'OR'
# ]
# ]
#
# search_fields=[ 'xnat:mrScanData/TYPE',
# 'xnat:mrSessionData/PROJECT',
# 'xnat:mrSessionData/SUBJECT_ID',
# 'xnat:mrSessionData/SESSION_ID',
# 'xnat:mrScanData/ID'
# ]
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='search and download')
......@@ -43,7 +23,7 @@ if __name__ == "__main__":
parser.add_argument('--passw', '-p', type=str, default=None, help='Password of your user')
args = parser.parse_args()
host = args.host
host = args.host.strip('/')
user = args.user
query = json.load(args.query)
csv_out = args.csv_out
......
......@@ -263,7 +263,7 @@ def downl_query():
def start_web_gui(args):
if args.host:
state["host"] = args.host
state["host"] = args.host.strip('/')
if args.user:
state["username"], _, state["password"] = args.user.partition(":")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment