Commit e1586a9d authored by Fjen Undso's avatar Fjen Undso
Browse files

VoteController: give positive stats if no user in session

parent 3cfc55be
......@@ -139,6 +139,13 @@ public class VoteController extends Controller {
userIDs.add(v.owner);
}
sUsers.value = userIDs.size();
// give positive stats if no users yet
if (sUsers.value == 0) {
sSpeed.value = 50;
sAll.value = 100;
sUnderstandability.value = 100;
}
return ok(Json.toJson(vsList)); // 200
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment