Skip to content

Commit

Permalink
Added report_type to LineSupervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
fcapallera committed Jan 11, 2024
1 parent 9c3d631 commit 06e3d0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion primestg/report/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ class LineSupervisorDetails(LineSupervisor):
"""
Base class for a line supervisors of report that need the name of the remote terminal unit in the values, like S52.
"""

def __init__(self, objectified_line_supervisor, rt_unit_name):
"""
Create a line supervisor object using line supervisor constructor and adding the remote terminal unit name.
Expand All @@ -797,6 +796,10 @@ def __init__(self, objectified_line_supervisor, rt_unit_name):
"""
super(LineSupervisorDetails, self).__init__(objectified_line_supervisor)
self.rt_unit_name = rt_unit_name

@property
def report_type(self):
return self.__class__.__name__[-3:]

@property
def rt_unit_name(self):
Expand Down

0 comments on commit 06e3d0c

Please sign in to comment.