Commit cb24d01aed5424313082a5bb909ae9b341eb105b
1 parent
5dbac007
Exists in
master
and in
1 other branch
- fixed path expansion in App.give_up
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app.py
... | ... | @@ -168,8 +168,10 @@ class App(object): |
168 | 168 | t.giveup() |
169 | 169 | |
170 | 170 | # save JSON with the test |
171 | + # fname = ' -- '.join((t['student']['number'], t['ref'], str(t['finish_time']))) + '.json' | |
172 | + # fpath = path.abspath(path.join(t['answers_dir'], fname)) | |
171 | 173 | fname = ' -- '.join((t['student']['number'], t['ref'], str(t['finish_time']))) + '.json' |
172 | - fpath = path.abspath(path.join(t['answers_dir'], fname)) | |
174 | + fpath = path.join(t['answers_dir'], fname) | |
173 | 175 | t.save_json(fpath) |
174 | 176 | |
175 | 177 | # insert test into database | ... | ... |