ixbrl-viewer 1.4.49__py3-none-any.whl → 1.4.51__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ixbrl-viewer might be problematic. Click here for more details.

@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.4.49'
16
- __version_tuple__ = version_tuple = (1, 4, 49)
15
+ __version__ = version = '1.4.51'
16
+ __version_tuple__ = version_tuple = (1, 4, 51)
@@ -561,20 +561,22 @@ class iXBRLViewer:
561
561
 
562
562
  def __init__(self, cntlr: Cntlr):
563
563
  self.reportZip = None
564
- self.files = []
564
+ self.filesByFilename = dict()
565
565
  self.filingDocuments = None
566
566
  self.cntlr = cntlr
567
- self.filenames = set()
568
567
  self.assets = []
569
568
 
570
569
  def addReportAssets(self, assets):
571
570
  self.assets.extend(assets)
572
571
 
573
572
  def addFile(self, ivf):
574
- if ivf.filename in self.filenames:
575
- return
576
- self.files.append(ivf)
577
- self.filenames.add(ivf.filename)
573
+ # Overwrite previous occurrences of the same document, because it may
574
+ # have had more IDs added to it by subsequent target documents.
575
+ self.filesByFilename[ivf.filename] = ivf
576
+
577
+ @property
578
+ def files(self):
579
+ return list(self.filesByFilename.values())
578
580
 
579
581
  def addFilingDoc(self, filingDocuments):
580
582
  self.filingDocuments = filingDocuments