Skip to content

Commit da0e94b

Browse files
author
David Linko
committed
removed rpt_item_index
1 parent 8fdc4d6 commit da0e94b

File tree

3 files changed

+476
-41
lines changed

3 files changed

+476
-41
lines changed

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

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

4443
# Shared properties
4544
class RptEntryFull(RptEntryBase):

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

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

0 commit comments

Comments
 (0)