diff --git a/pyproject.toml b/pyproject.toml index 642ecb7..f7f7578 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "python-catalyst" -version = "0.1.4" +version = "0.1.5" description = "Python client for the PRODAFT CATALYST API" readme = "README.md" license = { file = "LICENSE" } diff --git a/python_catalyst/__init__.py b/python_catalyst/__init__.py index 1b450f9..88496c2 100644 --- a/python_catalyst/__init__.py +++ b/python_catalyst/__init__.py @@ -1,6 +1,6 @@ """PRODAFT CATALYST API client package.""" -__version__ = "0.1.0" +__version__ = "0.1.5" from .client import CatalystClient from .enums import ObservableType, PostCategory, TLPLevel diff --git a/python_catalyst/client.py b/python_catalyst/client.py index fecb4f9..4350675 100644 --- a/python_catalyst/client.py +++ b/python_catalyst/client.py @@ -526,7 +526,7 @@ def create_report_from_member_content_with_references( published_on = content.get("published_on", content.get("published_date")) modified = content.get("updated_date", content.get("updated_on")) content_id = content.get("id") - slug = content.get("slug", "") + slug = content.get("slug", "") # noqa: F841 tlp = content.get("tlp", TLPLevel.CLEAR.value) self.converter = self.get_stix_converter(tlp) @@ -695,17 +695,21 @@ def create_report_from_member_content_with_references( ) # Get detailed content and create report - detailed_content = ( - self.get_member_content(content_id) - if self.catalyst_authenticated - else self.get_member_content(slug) - ) - content = detailed_content.get("content", "") + # For now, the summary will be used instead of detailed content. + # detailed_content = ( + # self.get_member_content(content_id) + # if self.catalyst_authenticated + # else self.get_member_content(slug) + # ) + # content = detailed_content.get("content", "") + content = summary or description + post_url = f"https://catalyst.prodaft.com/report/{content_id}" # noqa: E231 + content += f"\n Access the full content at: {post_url}" report = self.converter.create_report( content_id=content_id, title=title, - description=content or summary or description, + description=content, published=published, modified=modified, object_refs=collected_object_refs, diff --git a/setup.py b/setup.py index 6689657..dbbf6ed 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="python-catalyst", - version="0.1.4", + version="0.1.5", description="Python client for the PRODAFT CATALYST API", long_description=long_description, long_description_content_type="text/markdown",