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"))
|
row.append(_("Invalid votes"))
|
||||||
for p in polls:
|
for p in polls:
|
||||||
if p.published:
|
if p.published:
|
||||||
row.append(p.votesinvalid)
|
row.append(p.print_votesinvalid())
|
||||||
data_votes.append(row)
|
data_votes.append(row)
|
||||||
|
|
||||||
# votes cast
|
# votes cast
|
||||||
@ -384,7 +384,7 @@ class AssignmentPDF(PDFView):
|
|||||||
row.append(_("Votes cast"))
|
row.append(_("Votes cast"))
|
||||||
for p in polls:
|
for p in polls:
|
||||||
if p.published:
|
if p.published:
|
||||||
row.append(p.votescast)
|
row.append(p.print_votescast())
|
||||||
data_votes.append(row)
|
data_votes.append(row)
|
||||||
|
|
||||||
table_votes=Table(data_votes)
|
table_votes=Table(data_votes)
|
||||||
|
Loading…
Reference in New Issue
Block a user