Skip to content

Commit

Permalink
Merge pull request #97 from gisce/IMP_report_type
Browse files Browse the repository at this point in the history
Added 'report_type' to LineSupervisor
  • Loading branch information
tinogis authored Jan 12, 2024
2 parents 9c3d631 + 06e3d0c commit 0639eed
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 0639eed

Please sign in to comment.