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

Calculate average gives falsey values #1

Open
dipanshuchaubey opened this issue Dec 23, 2019 · 0 comments
Open

Calculate average gives falsey values #1

dipanshuchaubey opened this issue Dec 23, 2019 · 0 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@dipanshuchaubey
Copy link
Owner

Calculate average does not work when there are 2 documents in the database and one of them is deleted.

When one documents is deleted out of the 2. The value of average values stays the same in the database, while the value should be updated to the value of the remaining one document.

Places where it occurs:

  1. Calculate the average cost of Bootcamp.
  2. Calculate the average rating of Bootcamp.
@dipanshuchaubey dipanshuchaubey added the invalid This doesn't seem right label Dec 23, 2019
@dipanshuchaubey dipanshuchaubey self-assigned this Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant