Bug fix 'use as xanapage' button.

This commit is contained in:
Edward Betts 2019-04-26 11:24:52 +01:00
parent 3adf364e64
commit 5fb0b41e8a

View file

@ -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)