Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.py/Results.js Refactor #59

Open
MEwers96 opened this issue Feb 4, 2020 · 0 comments
Open

api.py/Results.js Refactor #59

MEwers96 opened this issue Feb 4, 2020 · 0 comments

Comments

@MEwers96
Copy link
Collaborator

MEwers96 commented Feb 4, 2020

  1. api.py can have a single app.route which will run the classification.py and get_spectrogram.py
  • Currently api.py has different routings which run the classification and spectrogram individually. Those routings then return their respective data structure to the front-end. We can change this to be one routing which builds the entire analysis dictionary, instead of building the dictionary within the results.js page
  1. Results.js can have a single ajax call to the backend. The results.js page can be changed to no longer build the final dictionary
@MEwers96 MEwers96 changed the title apy.py/Results.js Refactor api.py/Results.js Refactor Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant