Skip to content

Adding option of submitting saved solutions #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

o-alexandre-felipe
Copy link

The option --submission_folder can be used to choose a location for saving solutions, this enables the student to keep several versions of its solutions.
If the --record_submission option is set the selected parts will be saved ini the folder given in --submission_folder option, if the option is missing the script will behave exactly as the previous version. If --record_submission is not passed and the --submission_folder is given, instead of computing the solutions the script will submit the solution previously saved int the selected folder.

The option --submission_folder can be used to choose a location for saving solutions, this enables the student to keep several versions of its solutions.
If the --record_submission option is set the selected parts will be saved ini the folder given in --submission_folder option, if the option is missing the script will behave exactly as the previous version. If --record_submission is not passed and the --submission_folder is given, instead of computing the solutions the script will submit the solution previously saved int the selected folder.
submit.py Outdated
# store submissions if requested
if args.record_submission == True:
print('Recording submission as files')
for sid, submission in results.items():
for sid, submission in results.iteritems():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is failing becouse this is not python3 compatible.

I use python 2.x. In python 2.x is preferable to use iteritems because it does not create an additional list, I was not aware that it was incompatible with Python 3.
@codecov-io
Copy link

codecov-io commented Jul 29, 2017

Codecov Report

Merging #38 into master will decrease coverage by 0.87%.
The diff coverage is 57.69%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #38      +/-   ##
=========================================
- Coverage   89.48%   88.6%   -0.88%     
=========================================
  Files          17      17              
  Lines        1056    1071      +15     
=========================================
+ Hits          945     949       +4     
- Misses        111     122      +11
Impacted Files Coverage Δ
submit.py 80% <57.69%> (-3.56%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b04d42f...e3b4fc4. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants