user_metrics has keys for the user_email, the number of images uploaded, the number of images processed, the number of times they've processed any image with each of the 4 processing types, and the amount of time the last processing task took to run.
@EricaSkerrett for getting info for that last key, it looks like you can use the timeit library, and just put that code in each of the four image processing functions to get an output of the time it took to do that processing. Then I can update that key in user_metrics after calling on the image processing functions in the GET request.
user_metrics has keys for the user_email, the number of images uploaded, the number of images processed, the number of times they've processed any image with each of the 4 processing types, and the amount of time the last processing task took to run.
@EricaSkerrett for getting info for that last key, it looks like you can use the timeit library, and just put that code in each of the four image processing functions to get an output of the time it took to do that processing. Then I can update that key in user_metrics after calling on the image processing functions in the GET request.
https://docs.python.org/2/library/timeit.html