From ea596d6a25e6608305be535e933146af015b4ec5 Mon Sep 17 00:00:00 2001 From: Blue Date: Wed, 28 Aug 2024 14:58:14 +0500 Subject: [PATCH] fix: convert totalRegistrationTime to snake case (#35333) * fix: convert totalRegistrationTime to snake case Description: Convert totalRegistrationTime to snake case VAN-1816 * fix: link issue --------- Co-authored-by: Ahtesham Quraish Co-authored-by: Syed Sajjad Hussain Shah --- openedx/core/djangoapps/user_authn/views/register.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/user_authn/views/register.py b/openedx/core/djangoapps/user_authn/views/register.py index 17ca1d4f2a..ab57687d2c 100644 --- a/openedx/core/djangoapps/user_authn/views/register.py +++ b/openedx/core/djangoapps/user_authn/views/register.py @@ -390,7 +390,9 @@ def _track_user_registration(user, profile, params, third_party_provider, regist 'is_year_of_birth_selected': bool(profile.year_of_birth), 'is_education_selected': bool(profile.level_of_education_display), 'is_goal_set': bool(profile.goals), - 'total_registration_time': round(float(params.get('totalRegistrationTime', '0'))), + 'total_registration_time': round( + float(params.get('total_registration_time') or params.get('totalRegistrationTime') or 0) + ), 'activation_key': registration.activation_key if registration else None, 'host': params.get('host', ''), 'app_name': params.get('app_name', ''),