Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version v0.3.4 #46

Merged
merged 10 commits into from
Sep 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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