Skip to content

Commit

Permalink
update USAGE with revisions for #127
Browse files Browse the repository at this point in the history
  • Loading branch information
isaisabel committed Dec 11, 2020
1 parent a2f0bf1 commit 67c934d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ def get_related(thesrc, src_type, rel_type, target_type, reverse=False):
relationships = thesrc.query([
Filter('type', '=', 'relationship'),
Filter('relationship_type', '=', rel_type),
Filter('revoked', '=', False)
])

# stix_id => [ { relationship, related_object_id } for each related object ]
Expand Down Expand Up @@ -796,7 +795,7 @@ Revoked and deprecated objects are kept in the knowledge base so that workflows
broken. We recommend you filter out revoked and deprecated objects from your views whenever possible since they are no
longer maintained by ATT&CK.

Revoked and deprecated objects can be removed quite easily:
We recommend _not_ using built-in STIX filters for removing revoked objects (e.g `Filter('revoked', '=', False)`). This is because the behavior of this specific filter is inconsistent depending on the method of access (using local data or accessing via the TAXII server). We recommend using the following code example to filter revoked objects instead. See [issue #127](https://github.com/mitre/cti/issues/127) for more details.

```python
from stix2 import Filter
Expand Down

0 comments on commit 67c934d

Please sign in to comment.