Skip to content

Commit 19e004a

Browse files
committed
Update entry content additional fields
1 parent 78dacbc commit 19e004a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

bugout/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,9 @@ def update_entry_content(
670670
timeout: float = REQUESTS_TIMEOUT,
671671
tags: Optional[List[str]] = None,
672672
tags_action: TagsAction = TagsAction.merge,
673+
context_url: Optional[str] = None,
674+
context_id: Optional[str] = None,
675+
context_type: Optional[str] = None,
673676
auth_type: str = data.AuthType.bearer.name,
674677
**kwargs: Dict[str, Any],
675678
) -> data.BugoutJournalEntryContent:
@@ -682,6 +685,9 @@ def update_entry_content(
682685
content=content,
683686
tags=tags,
684687
tags_action=tags_action,
688+
context_url=context_url,
689+
context_id=context_id,
690+
context_type=context_type,
685691
auth_type=data.AuthType[auth_type],
686692
**kwargs,
687693
)

bugout/journal.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ def update_entry_content(
371371
content: str,
372372
tags: Optional[List[str]] = None,
373373
tags_action: TagsAction = TagsAction.merge,
374+
context_url: Optional[str] = None,
375+
context_id: Optional[str] = None,
376+
context_type: Optional[str] = None,
374377
auth_type: AuthType = AuthType.bearer,
375378
**kwargs: Dict[str, Any],
376379
) -> BugoutJournalEntryContent:
@@ -379,6 +382,9 @@ def update_entry_content(
379382
json: Dict[str, Any] = {
380383
"title": title,
381384
"content": content,
385+
"context_url": context_url,
386+
"context_id": context_id,
387+
"context_type": context_type,
382388
}
383389
if tags is not None:
384390
json["tags"] = tags

0 commit comments

Comments
 (0)