-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: Use SQLAlchemy in-built timestamp function #5948
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
fix: Use SQLAlchemy in-built timestamp function #5948
Conversation
Codecov Report
@@ Coverage Diff @@
## development #5948 +/- ##
===============================================
+ Coverage 66.43% 66.44% +<.01%
===============================================
Files 285 285
Lines 13869 13871 +2
===============================================
+ Hits 9214 9216 +2
Misses 4655 4655
Continue to review full report at Codecov.
|
app/models/session.py
Outdated
|
|
||
| import pytz | ||
| from sqlalchemy import event, func | ||
| from sqlalchemy.sql import func as dateandtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| from sqlalchemy.sql import func as dateandtime | |
| from sqlalchemy.sql import func as sql_func |
|
It isn't anywhere else? |
|
@iamareebjamal Yes. |
Fixes #5943
Checklist
developmentbranch.Short description of what this resolves:
Pytz function used to save same timestamp in Database in case of subsequent requests.
Changes proposed in this pull request:
Use Inbuild SqlAlchemy Function for saving Timestamp