Skip to content

Commit 2db0a8a

Browse files
author
David Linko
committed
updated to include rpt_item_index
1 parent 525fbcf commit 2db0a8a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

anms-core/anms/components/schemas/ARIs/rpt_entry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Config:
3939
time_offset: Optional[str] = None
4040
report_source: Optional[str] = None
4141
report_items: Optional[list] = None
42+
report_item_indexes: Optional[list] = None
4243

4344
# Shared properties
4445
class RptEntryFull(RptEntryBase):

anms-core/anms/models/relational/report.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Report(Model):
4646
time_offset = Column(LargeBinary)
4747
report_source = Column(LargeBinary)
4848
report_items = Column(ARRAY(LargeBinary) )#bytea[] NULL
49-
49+
report_item_indexes = Column(ARRAY(Integer))
5050
# processing the raw cbor into an ari object
5151
@orm.reconstructor
5252
def init_on_load(self):
@@ -66,6 +66,7 @@ def as_dict(self) -> Dict[str, Any]:
6666
'agent_id': getattr(self, 'agent_id'),
6767
'ari_rptlist_id': getattr(self, 'ari_rptlist_id'),
6868
'report_source': getattr(self, 'report_source'),
69-
'report_items': getattr(self, 'report_items')
69+
'report_items': getattr(self, 'report_items'),
70+
'report_item_indexes': getattr(self, 'report_item_indexes')
7071
}
7172
return dict_obj

0 commit comments

Comments
 (0)