Bug fix 'use as xanapage' button.
This commit is contained in:
parent
3adf364e64
commit
5fb0b41e8a
|
@ -404,7 +404,7 @@ def history(username, hashid):
|
|||
@bp.route('/<username>/<hashid>/as_xanapage', methods=['POST'])
|
||||
def create_xanapage_from_sourcedoc(username, hashid):
|
||||
src_doc = get_source_doc(username, hashid)
|
||||
edl = src_doc.entire_span + '\n'
|
||||
edl = 'span: ' + src_doc.entire_span + '\n'
|
||||
|
||||
page = XanaPage(user=current_user, text=edl)
|
||||
session.add(page)
|
||||
|
|
Loading…
Reference in a new issue