quivr/backend
Stan Girard 52d121b96f
feat: Add timezone conversion for premium user check (#2670)
This commit adds timezone conversion to the premium user check in the
`check_if_is_premium_user` function. It imports the `pytz` library and
retrieves the current time in the "Europe/Paris" timezone. This ensures
that the comparison of the current period end with the current time is
accurate, taking into account the correct timezone. The Paris time is
logged for debugging purposes.

Co-authored-by: Stan Girard <stan@quivr.app>

# 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):

---------

Co-authored-by: Stan Girard <stan@quivr.app>
2024-06-13 01:54:26 -07:00
..
.vscode feat: ⚙️🐞 configure debugger for the backend (#1345) 2023-10-09 15:23:13 +02:00
middlewares feat: add init to create packages (#2606) 2024-05-21 13:42:07 -07:00
models feat: Add premium user check in celery task (#2668) 2024-06-13 01:14:12 -07:00
modules fix: name passed in sync authorize (#2665) 2024-06-12 05:20:10 -07:00
packages feat: telemetry improved (#2651) 2024-06-10 06:28:14 -07:00
playground Feat/auth-playground (#2605) 2024-05-21 13:20:35 -07:00
routes feat: add init to create packages (#2606) 2024-05-21 13:42:07 -07:00
supabase feat: Add force_sync option to SyncsActiveUpdateInput (#2652) 2024-06-10 07:17:09 -07:00
tests feat: Update QuivrRAG and run_evaluation.py files (#2615) 2024-05-28 07:47:31 -07:00
vectorstore feat: Update QuivrRAG and run_evaluation.py files (#2615) 2024-05-28 07:47:31 -07:00
__init__.py refactor: Refacto code #1 (#2458) 2024-04-20 02:22:05 -07:00
.dockerignore feat(notion): added custom integration (#2268) 2024-02-27 21:30:25 -08:00
celery_config.py feat(upload): async improved (#2544) 2024-06-04 06:29:27 -07:00
celery_worker.py feat: Add timezone conversion for premium user check (#2670) 2024-06-13 01:54:26 -07:00
ci-migration.sh Update supabase token setting in ci-migration.sh 2024-05-02 00:04:01 +02:00
Dockerfile feat(crawler): Add Playwright for web crawling (#2562) 2024-05-08 07:20:35 -07:00
Dockerfile.dev fix: sync creation fixed (#2637) 2024-06-06 10:06:21 -07:00
logger.py Refactor logging configuration and remove unused imports 2024-04-28 13:35:07 +02:00
main.py feat(upload): async improved (#2544) 2024-06-04 06:29:27 -07:00
manage_services.sh feat(integration): implementation (#2191) 2024-02-14 20:07:53 -08:00
Porter.yaml feat(porter): Add Porter.yaml files for backend and frontend services 2024-04-25 10:51:10 +02:00
pyrightconfig.json feat(refacto): changed a bit of things to make better dx (#984) 2023-08-19 13:32:16 +02:00
requirements.txt fix: sync creation fixed (#2637) 2024-06-06 10:06:21 -07:00
tach.yml fix: integrations (#2642) 2024-06-08 02:55:11 -07:00