From 55055e0a085bd713e8226f10b7788139b1193d53 Mon Sep 17 00:00:00 2001 From: Syed Sajjad Hussain Shah Date: Wed, 21 Aug 2024 12:08:48 +0500 Subject: [PATCH] fix: link issue --- openedx/core/djangoapps/user_authn/views/register.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/user_authn/views/register.py b/openedx/core/djangoapps/user_authn/views/register.py index 71c3f2dcd1d1..ab57687d2cd4 100644 --- a/openedx/core/djangoapps/user_authn/views/register.py +++ b/openedx/core/djangoapps/user_authn/views/register.py @@ -390,8 +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('total_registration_time', '0'))) or - 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', ''),