mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
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> |
||
---|---|---|
.. | ||
.vscode | ||
middlewares | ||
models | ||
modules | ||
packages | ||
playground | ||
routes | ||
supabase | ||
tests | ||
vectorstore | ||
__init__.py | ||
.dockerignore | ||
celery_config.py | ||
celery_worker.py | ||
ci-migration.sh | ||
Dockerfile | ||
Dockerfile.dev | ||
logger.py | ||
main.py | ||
manage_services.sh | ||
Porter.yaml | ||
pyrightconfig.json | ||
requirements.txt | ||
tach.yml |