8000 Round score to the first decimal by faube · Pull Request #9105 · GoogleCloudPlatform/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content

Round score to the first decimal #9105

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

Conversation

faube
Copy link
Contributor
@faube faube commented Feb 9, 2023

Description

Round score to the first decimal. Scores never have a second decimal anyway, and the way it is truncated in the frontend can lead to the wrong value displayed (0.8 instead of 0.9 for a value of 0.89999999)

Checklist

…anyway, and the way it is truncated in the frontend can lead to the wrong value displayed (0.8 instead of 0.9 for a value of 0.89999999)
@faube faube requested review from a team as code owners February 9, 2023 16:41
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Feb 9, 2023
@Sita04 Sita04 merged commit 2ffbb3a into GoogleCloudPlatform:demosite-app-recaptcha Feb 9, 2023
Sita04 added a commit that referenced this pull request Feb 21, 2023
* docs(recaptcha-samples): init add demosite

* Update docker-compose.yaml

* Update docker-compose.yaml

* Change default port from 8000 to 8080. (#9043)

* Change default port from 8000 to 8080.

* Add Apache license to docker-compose.yaml

* feat(demosite): add gamified demosite (#8857)

* feat: update demosite pages and theme

- Updates demosite pages to add examples
- Updates visual design and layout of examples

Still work in progress:

- Visual design
- Layout
- Interaction design
- Copy
- Replace checkbox examples
- Add game

* feat: update app urls

* add license headers

Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>

* refactored to remove comments and print statements

* Demosite app recaptcha (#9068)

* chore: cleanup todos

* feat: cleanup checkboxes and draft copy

* chore: fix simple example, animate results, game placeholder

* chore: correct checkbox keys and add game route

* moved context to global

---------

Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>

* removed checkbox references from dockerfile

* refactor create assessment call

* fix score display issue

* refactor to demonstrate site_key best practice

* Round score to the first decimal; scores never have a second decimal anyway, and the way it is truncated in the frontend can lead to the wrong value displayed (0.8 instead of 0.9 for a value of 0.89999999) (#9105)

* add headers

* lint fix

* lint

* fix typo

* added newline

* Add an optional DOCKER_COMPOSE_USER environment variable. This can be helpful such that files get created by the same user that is running docker (#9130)

* updated README and verdict in assessment. Added comment in dockerfiles

---------

Co-authored-by: Cory Kramer <corykramer@google.com>
Co-authored-by: Rhy Moore <git@morewry.me>
Co-authored-by: Francois Aube <faube@google.com>
Co-authored-by: nicain <nicholascain@google.com>
telpirion pushed a commit that referenced this pull request Mar 13, 2023
* docs(recaptcha-samples): init add demosite

* Update docker-compose.yaml

* Update docker-compose.yaml

* Change default port from 8000 to 8080. (#9043)

* Change default port from 8000 to 8080.

* Add Apache license to docker-compose.yaml

* feat(demosite): add gamified demosite (#8857)

* feat: update demosite pages and theme

- Updates demosite pages to add examples
- Updates visual design and layout of examples

Still work in progress:

- Visual design
- Layout
- Interaction design
- Copy
- Replace checkbox examples
- Add game

* feat: update app urls

* add license headers

Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>

* refactored to remove comments and print statements

* Demosite app recaptcha (#9068)

* chore: cleanup todos

* feat: cleanup checkboxes and draft copy

* chore: fix simple example, animate results, game placeholder

* chore: correct checkbox keys and add game route

* moved context to global

---------

Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>

* removed checkbox references from dockerfile

* refactor create assessment call

* fix score display issue

* refactor to demonstrate site_key best practice

* Round score to the first decimal; scores never have a second decimal anyway, and the way it is truncated in the frontend can lead to the wrong value displayed (0.8 instead of 0.9 for a value of 0.89999999) (#9105)

* add headers

* lint fix

* lint

* fix typo

* added newline

* Add an optional DOCKER_COMPOSE_USER environment variable. This can be helpful such that files get created by the same user that is running docker (#9130)

* updated README and verdict in assessment. Added comment in dockerfiles

---------

Co-authored-by: Cory Kramer <corykramer@google.com>
Co-authored-by: Rhy Moore <git@morewry.me>
Co-authored-by: Francois Aube <faube@google.com>
Co-authored-by: nicain <nicholascain@google.com>
Sita04 pushed a commit that referenced this pull request Mar 14, 2023
…anyway, and the way it is truncated in the frontend can lead to the wrong value displayed (0.8 instead of 0.9 for a value of 0.89999999) (#9105)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants
0