Commit 935a0747 authored by jtimotei's avatar jtimotei

Fix linter issues

parent 6f7f0c97
Pipeline #18843 passed with stages
in 4 minutes and 17 seconds
......@@ -77,7 +77,7 @@ class PanelMCQ extends React.Component {
return this.props.deleteMCOs(-difference)
}
return Promise.resolve(true);
return Promise.resolve(true)
}
// this function is called when the input is changed for the number of possible answers
......
......@@ -461,7 +461,7 @@ class Exams extends React.Component {
if (nrMCOs <= 0 || !widget.problem.mc_options.length) return Promise.resolve(true)
let option = widget.problem.mc_options[index]
if (!option) return Promise.resolve(false);
if (!option) return Promise.resolve(false)
return api.del('mult-choice/' + option.id)
.then(res => {
......
......@@ -325,9 +325,9 @@ class Grade extends React.Component {
problem.id + '/' + submission.id + '/' + (this.state.fullPage ? '1' : '0')) + '?' +
this.getLocationHash(problem) : ''} alt='' />
</p>
<div className={'graded info' +
(this.state.showTooltips ? ' tooltip is-tooltip-active is-tooltip-left' : '')}
data-tooltip='a to approve' >
<div className={
'graded info' + (this.state.showTooltips ? ' tooltip is-tooltip-active is-tooltip-left' : ''
)} data-tooltip='a to approve' >
{solution.graded_at
? <div>Graded by: {solution.graded_by.name} <i>({gradedTime.toLocaleString()})</i></div>
: <div>Ungraded</div>
......
......@@ -414,7 +414,7 @@ def save_with_even_pages(pdf_path, exam_pdf_file):
if (pagecount % 2 == 0):
exam_pdf_file.save(pdf_path)
return
new = PdfWriter()
new.addpages(exam_pdf.pages)
blank = PageMerge()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment