Skip to content

Commit

Permalink
Return tagged observables when bulk adding them (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop authored Mar 7, 2024
1 parent 1a7c306 commit ba42085
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/schemas/observable.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def add_text(cls, text: str, tags: list[str] = []) -> "ObservableTypes": # noqa
value=refanged,
created=datetime.datetime.now(datetime.timezone.utc),
).save()
observable.get_tags()
if tags:
observable = observable.tag(tags)
return observable
Expand Down

0 comments on commit ba42085

Please sign in to comment.