Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

2.3 release #59

Merged
merged 18 commits into from
Jun 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
register commit check for r and matlab file exts
echyam committed May 21, 2020
commit e0e4b2c6d7b5e128c15b58e2bb254579a9e77dfe
4 changes: 2 additions & 2 deletions submit_jobs/submit_jobs/handlers.py
Original file line number Diff line number Diff line change
@@ -164,8 +164,8 @@ def get(self,**params):
git_status = git_status_out.splitlines()[1:]
git_status = [e.strip() for e in git_status]

# filter for unsaved python files
unsaved = list(filter(lambda e: ( (e.split('.')[-1] in ['ipynb','py','sh','jl']) and (e[0] in ['M','?']) ), git_status))
# filter for unsaved python, julia, matlab shell files
unsaved = list(filter(lambda e: ( (e.split('.')[-1] in ['ipynb','py','sh','jl','r','m','mat']) and (e[0] in ['M','?']) ), git_status))
if len(unsaved) != 0:
self.finish({"status_code": 412, "result": "Error: Notebook(s) and/or script(s) have not been committed\n{}".format('\n'.join(unsaved))})
return