diff --git a/src/modules/site-v2/base/views/tools/genetic_mapping.py b/src/modules/site-v2/base/views/tools/genetic_mapping.py index a12a2b49..65bb7835 100755 --- a/src/modules/site-v2/base/views/tools/genetic_mapping.py +++ b/src/modules/site-v2/base/views/tools/genetic_mapping.py @@ -85,7 +85,7 @@ def submit(form_data, no_cache=False): @genetic_mapping_bp.route('/my-results', methods=['GET'], endpoint='my_results') @jwt_required() def list_results(): - show_all = request.path.endswith('all-results') + show_all = request.endpoint.endswith('all_results') user = get_current_user() # Only show malformed Entities to admin users diff --git a/src/modules/site-v2/base/views/tools/heritability_calculator.py b/src/modules/site-v2/base/views/tools/heritability_calculator.py index a33dfdd7..d59df482 100644 --- a/src/modules/site-v2/base/views/tools/heritability_calculator.py +++ b/src/modules/site-v2/base/views/tools/heritability_calculator.py @@ -86,7 +86,7 @@ def create(): @heritability_calculator_bp.route('/my-results', methods=['GET'], endpoint='my_results') @jwt_required() def list_results(): - show_all = request.path.endswith('all-results') + show_all = request.endpoint.endswith('all_results') user = get_current_user() # Only show malformed Entities to admin users diff --git a/src/modules/site-v2/base/views/tools/pairwise_indel_finder.py b/src/modules/site-v2/base/views/tools/pairwise_indel_finder.py index eb2713aa..2acde147 100644 --- a/src/modules/site-v2/base/views/tools/pairwise_indel_finder.py +++ b/src/modules/site-v2/base/views/tools/pairwise_indel_finder.py @@ -134,7 +134,7 @@ def pairwise_indel_finder(): @pairwise_indel_finder_bp.route('/my-results', methods=['GET'], endpoint='my_results') @jwt_required() def list_results(): - show_all = request.path.endswith('all-results') + show_all = request.endpoint.endswith('all_results') user = get_current_user() # Only show malformed Entities to admin users diff --git a/src/modules/site-v2/base/views/tools/phenotype_database.py b/src/modules/site-v2/base/views/tools/phenotype_database.py index d99f1a0b..7dc55b5d 100644 --- a/src/modules/site-v2/base/views/tools/phenotype_database.py +++ b/src/modules/site-v2/base/views/tools/phenotype_database.py @@ -250,7 +250,7 @@ def submit(form_data, no_cache=False): @phenotype_database_bp.route('/my-results', methods=['GET'], endpoint='my_results') @jwt_required() def list_results(): - show_all = request.path.endswith('all-results') + show_all = request.endpoint.endswith('all_results') user = get_current_user() # Only show malformed Entities to admin users