From f769344ad9600d76dac379bcdc49be8d87a5d51c Mon Sep 17 00:00:00 2001 From: brent s Date: Tue, 12 Nov 2019 01:45:35 -0500 Subject: [PATCH] minor update --- app/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views.py b/app/views.py index 204a44e..73ad822 100644 --- a/app/views.py +++ b/app/views.py @@ -43,6 +43,7 @@ def chkbranch(ref_param = None): def index(): oldref = chkbranch(ref_param = request.args.get('ref')) docsdir = os.path.join(repo_path, 'docs') + # TODO: is this in the right place? it used to be after the subprocess call. oldref.checkout() for fname in ('MANUAL', 'README'): fpath = os.path.join(docsdir, '{0}.adoc'.format(fname)) @@ -59,6 +60,7 @@ def index(): @app.route('/aif.xsd', methods = ['GET']) def xsd(): oldref = chkbranch(ref_param = request.args.get('ref')) + # TODO: is this in the right place? it used to be after the resp.headers i think. oldref.checkout() with open(os.path.join(repo_path, 'aif.xsd'), 'r') as fh: xsd_raw = fh.read()