Commit ef419546 authored by Martin Schorb's avatar Martin Schorb
Browse files

bug fixes

parent 036a6609
......@@ -174,6 +174,9 @@ def new_matchcoll(mc_sel, stack, mc_owner, owner, project, all_mcs):
if not dash.callback_context.triggered:
raise PreventUpdate
if None in [mc_sel, stack, mc_owner, owner, project, all_mcs]:
raise PreventUpdate
if stack is None:
stack = ''
......
......@@ -418,7 +418,7 @@ for idx in range(params.max_tileviews):
url += '/z/' + str(section)
if 'imurl' not in imparams.keys():
imurl = url + '/jpeg-image?scale=' + scale
imparams['imurl'] = url + '/jpeg-image?scale=' + str(scale)
if 'zoom' in trigger:
if rectsel == {}:
......@@ -447,7 +447,7 @@ for idx in range(params.max_tileviews):
imurl = imparams['imurl']
elif 'section' in trigger:
imurl = re.sub('/z/[0-9]*', '/z/' + str(section), imurl)
imurl = re.sub('/z/[0-9]*', '/z/' + str(section), imparams['imurl'])
else:
fullbounds = thisstore['stackparams']['stats']['stackBounds']
......
......@@ -120,6 +120,12 @@ page.append(pathbrowse)
]
)
def export_stacktodir(dir_trigger, trig2, stack_sel, owner, project, allstacks, browsedir):
if not dash.callback_context.triggered:
raise PreventUpdate
if None in [stack_sel, owner, project, allstacks, browsedir]:
raise PreventUpdate
dir_out = browsedir
trigger = hf.trigger()
......
......@@ -240,7 +240,7 @@ def match_selector(module, newcoll=False):
html.A('Explore Match Collection',
id={'component': 'browse_mc', 'module': module},
target="_blank", style={'margin-left': '0.5em', 'margin-right': '1em'}),
html.Br()
html.Br(), html.Br()
], style={'display': 'none'})
])
......
Supports Markdown
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