Skip to content

Commit

Permalink
Fix conc session passing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomachalek committed Aug 16, 2018
1 parent e0718e0 commit d8ccd4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/controller/kontext.py
Expand Up @@ -833,10 +833,10 @@ def post_dispatch(self, methodname, action_metadata, tmpl, result):
# create and store concordance query key
if type(result) is DictType:
if action_metadata['use_conc_session']:
new_query_key = self._store_conc_params()
next_query_key = self._store_conc_params()
else:
new_query_key = None
self._update_output_with_conc_params(new_query_key, result)
next_query_key = self._prev_q_data.get('id', None) if self._prev_q_data else None
self._update_output_with_conc_params(next_query_key, result)

# log user request
log_data = self._create_action_log(self._get_items_by_persistence(Parameter.PERSISTENT), '%s' % methodname,
Expand Down
4 changes: 3 additions & 1 deletion templates/message.tmpl
Expand Up @@ -30,7 +30,9 @@ messagePage.init(__conf);

#def main
<section class="exclusive">
<h2 class="panic">$unicode(u'\uD83D\uDE31')</h2>
<h2 class="panic">
<img src="${files_path}/img/crisis.svg" alt="error" style="width: 0.8em" />
</h2>
<div id="root-mount"></div>
</section>
#end def

0 comments on commit d8ccd4b

Please sign in to comment.