Subversion Repositories eFlore/Applications.del

Rev

Rev 1544 | Rev 1667 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1544 Rev 1573
Line 396... Line 396...
396
				int valeurVote = Integer.parseInt(voteEnCours.get("vote").isString().stringValue());
396
				int valeurVote = Integer.parseInt(voteEnCours.get("vote").isString().stringValue());
397
				vd.setVote(valeurVote);
397
				vd.setVote(valeurVote);
398
				if (!votesProtocoles.containsKey(idProtocoleVote)) {
398
				if (!votesProtocoles.containsKey(idProtocoleVote)) {
399
					votesProtocoles.put(idProtocoleVote, new HashMap<String, VoteProtocole>());
399
					votesProtocoles.put(idProtocoleVote, new HashMap<String, VoteProtocole>());
400
				}
400
				}
-
 
401
				// un seul vote par utilisateur - garde le premier pour ĂȘtre cohĂ©rent avec commun/Stats (PHP)
-
 
402
				if (! votesProtocoles.get(idProtocoleVote).containsKey(vd.getContributeur())) {
401
				votesProtocoles.get(idProtocoleVote).put(vd.getContributeur(), vd);
403
					votesProtocoles.get(idProtocoleVote).put(vd.getContributeur(), vd);
-
 
404
				}
402
			}
405
			}
403
		}
406
		}
Line 404... Line 407...
404
 
407
 
405
		return votesProtocoles;
408
		return votesProtocoles;