Modify

Opened 6 years ago

Last modified 3 years ago

#3534 new defect

view page doesn't show reviewers actual vote

Reported by: anonymous Owned by: andersm
Priority: normal Component: PeerReviewPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

in peerReviewView.py:process_request()

reviewer.Vote returns an int, but you are comparing it to a string. Just wrap str() around it.

Example:

if str(reviewer.Vote) == '-1':

newrvpair.append("Not voted")

elif str(reviewer.Vote) == '0':

newrvpair.append("No")

elif str(reviewer.Vote) == '1':

newrvpair.append("Yes")

rvs.append(newrvpair)

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by andersm

  • Owner changed from proofek to andersm

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.