Skip to content
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

Update elabreport.py #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
5 changes: 3 additions & 2 deletions elabreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@ def gen_report_all(username, password, elabx):
print(str(i + 1) + ' : evaluation error : Couldn\'t get report')

else:
print(str(i + 1) + ' : No code written')
print(str(i + 1) + ' : Please Write the Code')

else:
print(str(i + 1) + ' : Question not allocated')
print(str(i + 1) + ' : Question not allocated: Contact CARE')

i+=1

Expand All @@ -287,6 +287,7 @@ def gen_report_all(username, password, elabx):
for i in range(0, 100):
if(os.path.isfile(payload['uname'] + '-' + str(i//10) + '-' + str(level) + '-' + str(i).zfill(3) + '.png')):
os.remove(payload['uname'] + '-' + str(i//10) + '-' + str(level) + '-' + str(i).zfill(3) + '.png')
print('Cleared File: '+str(i))

print('Image files cleared')

Expand Down