From 027d1b486d9467d9c6997fcb6a97ce84ecc29e8e Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Tue, 2 Jan 2024 16:17:47 -0500 Subject: [PATCH 1/2] Disable profile matching --- app.py | 7 ++- templates/individual_registration.html | 76 ++++++++++++-------------- 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/app.py b/app.py index a757891..a7b7886 100644 --- a/app.py +++ b/app.py @@ -1868,8 +1868,13 @@ def registrations(globus_user_id): return show_admin_error("This stage user does not exist!") else: # Check if there's any matching profiles in the `wp_connections` found - matching_profiles = get_matching_profiles(stage_user.last_name, stage_user.first_name, stage_user.email, stage_user.organization) + # Disabled by Zhou on 1/2/2024 to prevent decoding issue + # No longer need this matching profile feature for new members. + # matching_profiles = get_matching_profiles(stage_user.last_name, stage_user.first_name, stage_user.email, stage_user.organization) #pprint(vars(list(matching_profiles)[0])) + + # Use an empty list for all new registrations - Zhou 1/2/2024 + matching_profiles = [] context = { 'isAuthenticated': True, 'username': session['name'], diff --git a/templates/individual_registration.html b/templates/individual_registration.html index 45afcf8..15bd18a 100644 --- a/templates/individual_registration.html +++ b/templates/individual_registration.html @@ -36,7 +36,7 @@
Registration Detail
{% endif %}
-SenNet service(s) access requested:
+HuBMAP service(s) access requested: