Show number of votes

main
Bob Mottram 2019-11-26 11:37:33 +00:00
parent fe3fb78801
commit 44e0e02d02
1 changed files with 1 additions and 1 deletions

View File

@ -1831,7 +1831,7 @@ def insertQuestion(baseDir: str,translate: {}, \
continue continue
votes=int(questionOption['replies']['totalItems']) votes=int(questionOption['replies']['totalItems'])
votesPercent=str(int(votes*100/maxVotes)) votesPercent=str(int(votes*100/maxVotes))
content+='<p><input type="text" placeholder="" title="'+str(votes)+'" name="skillName'+str(questionCtr)+'" value="'+questionOption['name']+'" style="width:40%">' content+='<p><input type="text" placeholder="" title="'+str(votes)+'" name="skillName'+str(questionCtr)+'" value="'+questionOption['name']+' ('+str(votes)+')" style="width:40%">'
content+='<input type="range" min="1" max="100" class="slider" title="'+str(votes)+'" name="skillValue'+str(questionCtr)+'" value="'+votesPercent+'"></p>' content+='<input type="range" min="1" max="100" class="slider" title="'+str(votes)+'" name="skillValue'+str(questionCtr)+'" value="'+votesPercent+'"></p>'
questionCtr+=1 questionCtr+=1
content+='</div>' content+='</div>'