Created
November 27, 2017 18:38
-
-
Save EdMan1022/9b0b119961083ff2758bbcc327ff689e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Blueprint, request | |
from ..helper_functions import cluster_analysis_function | |
analytics = Blueprint('analytics', __name__, template_folder='templates') | |
@analytics.route('/api/analytics/cluster_analysis', methods=['GET']) | |
def cluster_analysis_view(): | |
""" | |
View for executing a cluster analysis of an analytic group. | |
:return: JSON of the cluster analysis output. | |
""" | |
response = cluster_analysis_function(request) | |
print(response) | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment