platelet-app / platelet

Dispatch system for emergency volunteer couriers.
https://platelet.app
Apache License 2.0
38 stars 10 forks source link

Statistics view #27

Open duckbytes opened 2 years ago

duckbytes commented 2 years ago

There needs to be a view that shows a table of statistics from a user set timeline.

There is already a component that connected to the old API in src/scenes/Statistics

It needs to be updated to work with the new API. This could be done either by making queries to DataStore or with a lambda function.

https://github.com/platelet-app/platelet-api/blob/master/app/api/statistics/statistics_utilities/statistics_functions.py

This is the old code that calculated statistics. It could be adapted to a lambda with connections to dyanmodb instead of sqlalchemy.