[sqlalchemy] How to format class property as another accessible property

2017-06-07 Thread GMS
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

[sqlalchemy] Grouped data in a Flask/SQLAlchemy class

2017-03-01 Thread GMS
I have the following class models: class DiagnosisDetail(Model): __tablename__ = 'vw_svc_diagnosis' diagnosis_id = Column(String(32), primary_key=True) first_name = Column(String(255)) last_name = Column(String(255)) mrn = Column(String(255))

[sqlalchemy] Grouped data in a Flask/SQLAlchemy class

2017-03-01 Thread GMS
I have the following class models: class DiagnosisDetail(Model): __tablename__ = 'vw_svc_diagnosis' diagnosis_id = Column(String(32), primary_key=True) first_name = Column(String(255)) last_name = Column(String(255)) mrn = Column(String(255))