summaryrefslogtreecommitdiff
path: root/addons/website_event_track_quiz/controllers
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-08-14 10:34:25 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-14 12:06:11 +0000
commitf236fdfe52c1791acdfb35bcb5c4cd192c2aee8f (patch)
tree36543668db8628c6a5f5992e9df4263f00f9b272 /addons/website_event_track_quiz/controllers
parent48a5ea290a408666eb7eb823dc08a893d4a37d65 (diff)
[IMP] website_event_track_quiz: add visitor_track fields on views
It allows to help debugging and could also allow to change gained points in case some tweaking is necessary. LINKS Coming from internal feedback while deploying online support Task ID-2314778 PR #55634 X-original-commit: 6d81690ff77dfbae74128cc2cbd875b2b3074823
Diffstat (limited to 'addons/website_event_track_quiz/controllers')
-rw-r--r--addons/website_event_track_quiz/controllers/community.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event_track_quiz/controllers/community.py b/addons/website_event_track_quiz/controllers/community.py
index 873a4f4fdf4..f10f8e9dffb 100644
--- a/addons/website_event_track_quiz/controllers/community.py
+++ b/addons/website_event_track_quiz/controllers/community.py
@@ -81,7 +81,7 @@ class WebsiteEventTrackQuizCommunityController(WebsiteEventCommunityController):
position = position + 1
return {
- 'top3_visitors': leaderboard[:3] if len(leaderboard) >= 3 else False,
+ 'top3_visitors': leaderboard[:3],
'visitors': leaderboard,
'current_visitor_position': current_visitor_position,
'current_visitor': current_visitor,