quivr/backend
Stan Girard 5fc349cd78
feat: Improve user credit calculation in get_user_credits (#3367)
Refactor the get_user_credits method in the Users class to improve the
calculation of monthly chat credits for a user. This change ensures that
the user's monthly chat credit is correctly deducted based on their
usage. If no user settings or monthly chat credit is found, a default
value of 25 is returned.

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-10-14 06:53:44 -07:00
..
.vscode feat: ⚙️🐞 configure debugger for the backend (#1345) 2023-10-09 15:23:13 +02:00
api feat: Improve user credit calculation in get_user_credits (#3367) 2024-10-14 06:53:44 -07:00
core fix: fixing pdf parsing (#3349) 2024-10-14 06:21:12 -07:00
docs docs: quivr core storage (#3366) 2024-10-14 01:31:00 -07:00
supabase feat: Add file name to knowledge properties in crawl_endpoint (#3346) 2024-10-08 07:12:10 -07:00
worker fix: fixing pdf parsing (#3349) 2024-10-14 06:21:12 -07:00
.dockerignore feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
.gitignore feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
ci-migration.sh Update supabase token setting in ci-migration.sh 2024-05-02 00:04:01 +02:00
Dockerfile feat(assistant): cdp (#3305) 2024-10-03 06:46:59 -07:00
Dockerfile.dev feat(assistant): cdp (#3305) 2024-10-03 06:46:59 -07:00
pyproject.toml feat: structlog parseable (#3319) 2024-10-04 02:34:58 -07:00
README.md feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
requirements-dev.lock feat: structlog parseable (#3319) 2024-10-04 02:34:58 -07:00
requirements.lock feat: structlog parseable (#3319) 2024-10-04 02:34:58 -07:00

backend

Describe your project here.