Fixed #125: Assignment PDF: Invalid votes and votes cast doesn't support special values '-1' and '-2'.
This commit is contained in:
parent
a3d7cc98a9
commit
040b5ffb45
@ -376,7 +376,7 @@ class AssignmentPDF(PDFView):
|
||||
row.append(_("Invalid votes"))
|
||||
for p in polls:
|
||||
if p.published:
|
||||
row.append(p.votesinvalid)
|
||||
row.append(p.print_votesinvalid())
|
||||
data_votes.append(row)
|
||||
|
||||
# votes cast
|
||||
@ -384,7 +384,7 @@ class AssignmentPDF(PDFView):
|
||||
row.append(_("Votes cast"))
|
||||
for p in polls:
|
||||
if p.published:
|
||||
row.append(p.votescast)
|
||||
row.append(p.print_votescast())
|
||||
data_votes.append(row)
|
||||
|
||||
table_votes=Table(data_votes)
|
||||
|
Loading…
Reference in New Issue
Block a user