Skip to content

Commit

Permalink
Improved prints
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclotruc committed Dec 17, 2024
1 parent ec07faf commit 8c71915
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ def create_tree_structure(query: dict, node: Dict, prefix: str = "", is_last: bo
"""Creates a tree-like string representation of the file structure."""

tree = ""
# print("/".join(node['path'].split('/')[3:]))
# print(node.keys())
# print("===")
if not node["name"]:
node["name"] = query['slug']

Expand Down Expand Up @@ -343,7 +340,6 @@ def ingest_directory(path: str, query: dict) -> Dict:
def ingest_from_query(query: dict) -> Dict:
"""Main entry point for analyzing a codebase directory or single file."""

print(query['max_file_size'])
path = f"{query['local_path']}{query['subpath']}"
if not os.path.exists(path):
raise ValueError(f"{query['slug']} cannot be found")
Expand Down
2 changes: 1 addition & 1 deletion src/utils/parse_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def parse_query(input_text: str, slider_position: int, pattern_type: str, patter
query['ignore_patterns'].extend(parsed_pattern)
query['include_patterns'] = None


print(f"{query['slug']:<20} | {query['pattern_type']}[{pattern}] {int(query['max_file_size']/1024)}kb, \n{query['url']}")
return query

0 comments on commit 8c71915

Please sign in to comment.