Skip to content

Commit

Permalink
Merge pull request #46 from josw123/develop
Browse files Browse the repository at this point in the history
Release version v0.3.4
  • Loading branch information
josw123 authored Sep 7, 2020
2 parents 9fbb0f0 + 251b33e commit 6b47674
Show file tree
Hide file tree
Showing 9 changed files with 422 additions and 216 deletions.
5 changes: 5 additions & 0 deletions dart_fss/filings/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ def attached_files(): return [x for x in self.attached_files if determinant(x.fi

@property
def xbrl(self):
if self._xbrl is None:
self.load_xbrl()
return self._xbrl

def load_xbrl(self):
""" XBRL 데이터 반환"""
import tempfile
if self._xbrl is None:
Expand Down
4 changes: 4 additions & 0 deletions dart_fss/filings/search_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def to_dict(self) -> Dict:
'report_list': [x.to_dict() for x in self.report_list]
}

def pop(self, index=-1):
""" 주어진 index 의 리포트를 반환하며, 리스트에서 삭제하는 함수"""
return self._report_list.pop(index)

def __repr__(self):
from pprint import pformat
return pformat(self.to_dict())
Expand Down
Loading

0 comments on commit 6b47674

Please sign in to comment.