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

67 refactor and test functions of dashboarduse casespy #69

Merged

Conversation

jnnchi
Copy link
Collaborator

@jnnchi jnnchi commented Nov 14, 2024

The following endpoints have been fully tested and are ready to be deployed. All calculations are verified and only integer scores/values are returned (with the exception of amount spent).

Can be called through /dashboard/[ENDPOINTNAME]

Endpoint names:
get_weekly_green_transactions/
get_weekly_carbon_score/
get_monthly_green_transactions/
get_monthly_carbon_score/
get_total_green_transactions/
get_top_5_companies/
get_total_co2_score/
get_company_tiers/
get_co2_score_change/
get_green_transaction_change/

@jnnchi jnnchi linked an issue Nov 14, 2024 that may be closed by this pull request
2 tasks
Copy link

vercel bot commented Nov 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rattm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 2:31am

@jnnchi
Copy link
Collaborator Author

jnnchi commented Nov 14, 2024

@benrockehenderson Let us know if the formatting works!

Copy link
Collaborator

@YoyoLiuuu YoyoLiuuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Thank you!

@YoyoLiuuu YoyoLiuuu merged commit 8dbe83c into main Nov 14, 2024
3 checks passed
@benrockehenderson
Copy link
Collaborator

@benrockehenderson Let us know if the formatting works!

Almost there. I think weekly should be removed. Also, data for the line graph component should come from one endpoint.

@YoyoLiuuu
Copy link
Collaborator

Yes! I just noticed. Thanks @benrockehenderson!

@jnnchi
Copy link
Collaborator Author

jnnchi commented Nov 14, 2024

Yep, just made the changes and will make a new PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor and Test Functions of dashboard/use_cases.py
3 participants