Skip to content

Instantly share code, notes, and snippets.

@EdMan1022
Created November 27, 2017 18:38
Show Gist options
  • Save EdMan1022/9b0b119961083ff2758bbcc327ff689e to your computer and use it in GitHub Desktop.
Save EdMan1022/9b0b119961083ff2758bbcc327ff689e to your computer and use it in GitHub Desktop.
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