From cb24d01aed5424313082a5bb909ae9b341eb105b Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Wed, 5 Apr 2017 14:03:13 +0100 Subject: [PATCH] - fixed path expansion in App.give_up --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index fdd461b..4d85394 100644 --- a/app.py +++ b/app.py @@ -168,8 +168,10 @@ class App(object): t.giveup() # save JSON with the test + # fname = ' -- '.join((t['student']['number'], t['ref'], str(t['finish_time']))) + '.json' + # fpath = path.abspath(path.join(t['answers_dir'], fname)) fname = ' -- '.join((t['student']['number'], t['ref'], str(t['finish_time']))) + '.json' - fpath = path.abspath(path.join(t['answers_dir'], fname)) + fpath = path.join(t['answers_dir'], fname) t.save_json(fpath) # insert test into database -- libgit2 0.21.2