changes of column import and add serialize table column fild show as per sheet
This commit is contained in:
@@ -12,7 +12,7 @@ class ManholeDomesticChamber(db.Model):
|
||||
|
||||
# Basic Fields
|
||||
Location = db.Column(db.String(500))
|
||||
Node_No = db.Column(db.String(100))
|
||||
MH_NO = db.Column(db.String(100))
|
||||
Depth_of_MH = db.Column(db.Float)
|
||||
|
||||
# Excavation categories
|
||||
@@ -46,3 +46,6 @@ class ManholeDomesticChamber(db.Model):
|
||||
|
||||
def __repr__(self):
|
||||
return f"<HanholeDomesticChamberConstruction {self.Location}>"
|
||||
|
||||
def serialize(self):
|
||||
return {c.name: getattr(self, c.name) for c in self.__table__.columns}
|
||||
|
||||
Reference in New Issue
Block a user