Oh right, I've used the @property decorator before, just been a while.
Thanks for the explanation of @hybrid_property. Makes sense.
On Wed, Jun 7, 2017 at 5:32 PM, mike bayer wrote:
>
>
> On 06/07/2017 06:19 PM, Greg Silverman wrote:
>
>> Thanks, it worked!
>>
>> I
On 06/07/2017 06:19 PM, Greg Silverman wrote:
Thanks, it worked!
I tried something similar using the @hybrid_property decorator, but
could not get it to work. What exactly is the difference between that
and the @property decorator?
@property is super normal Python stuff that's in all the
Thanks, it worked!
I tried something similar using the @hybrid_property decorator, but could
not get it to work. What exactly is the difference between that and the
@property decorator?
Greg--
On Wed, Jun 7, 2017 at 5:08 PM, mike bayer wrote:
>
>
> On 06/07/2017
On 06/07/2017 02:31 PM, GMS wrote:
I am sure this is easier than I am making it, but I just want to add a
property to a class so that decimal representations get truncated at 3
decimal digits.
My class is this:
class Measures(Model):
__tablename__= 'xcelera_measures'
id=
I am sure this is easier than I am making it, but I just want to add a
property to a class so that decimal representations get truncated at 3
decimal digits.
My class is this:
class Measures(Model):
__tablename__ = 'xcelera_measures'
id = Column(Numeric, primary_key=True)
studyidk