Skip to content

Commit

Permalink
Distinguish results pages by endpoint not path
Browse files Browse the repository at this point in the history
  • Loading branch information
vlagrassa committed Apr 22, 2024
1 parent 26ef554 commit 0ccf66d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/site-v2/base/views/tools/genetic_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/modules/site-v2/base/views/tools/phenotype_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ccf66d

Please sign in to comment.