Skip to content

Commit

Permalink
Same with baseclass
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Jul 29, 2024
1 parent 369e6e1 commit 70b0b4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2854,20 +2854,16 @@ def base_common(self, row, type_name):
"t_type": type_name,
"t_id": self.get_tid(row),
}
# if self.current_basket:
# base["t_basket"] = self.current_basket.t_id
if self.current_basket:
base["t_basket_baseclass"] = self.current_basket.t_id

return base

def sia_405_base_common(self, row, type_name):
base = {
return {
**self.base_common(row, type_name),
"letzte_aenderung": row.last_modification,
}
if self.current_basket:
base["t_basket_sia405_baseclass"] = self.current_basket.t_id

return base

def vsa_base_common(self, row, type_name):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def __init__(self):
class baseclass(self.Base):
__tablename__ = "baseclass"
__table_args__ = {"schema": config.ABWASSER_SCHEMA}
t_basket_baseclass = Column("t_basket", Integer)

ModelInterlisSia405Abwasser.baseclass = baseclass

Expand Down

0 comments on commit 70b0b4e

Please sign in to comment.