Skip to content

Commit

Permalink
Bugfix for query-endpoints to handle no line number filtering. (#44)
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
  • Loading branch information
cerrussell authored Apr 4, 2024
1 parent 1f5e957 commit 08d3894
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion atom_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
A cli, classes and functions for converting an atom slice to a different format
"""
__version__ = '0.5.0'
__version__ = '0.5.1'
2 changes: 1 addition & 1 deletion atom_tools/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def output_endpoints(data: Dict, names_only: bool, line_range: Tuple[int, int] |
continue
for k, v in usages.items():
for i in v:
if line_range[0] <= i <= line_range[1]:
if not line_range or line_range[0] <= i <= line_range[1]:
to_print += f':{k}:{i}'
break
to_print += '\n'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "atom-tools"
version = "0.5.0"
version = "0.5.1"
description = "Collection of tools for use with AppThreat/atom."
authors = [
{ name = "Caroline Russell", email = "caroline@appthreat.dev" },
Expand Down

0 comments on commit 08d3894

Please sign in to comment.