Replies: 1 comment
-
Not really an answer, but rather a comment. The part If you run: foo = BaseUUIDModel(created_datetime="2022-12-31 21:45:59")
foo.created_datetime.timestamp() # This will return 1672519559.0
BaseUUIDModel.created_datetime.timestamp() # This will fail with the error: AttributeError: type object 'BaseUUIDModel' has no attribute 'created_datetime' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I have a simple model as shown in the codes above.
I am trying to get the past 24 hours records of this
BaseUUIDModel
.It gives me this error:
Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.6
Python Version
Python 3.10.6
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions