Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0fc97c3

Browse files
fix file count
1 parent 94c50ff commit 0fc97c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/gitingest/output_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def format_node_with_context_limit(
108108
# Update summary with final info
109109
if node.type == FileSystemNodeType.DIRECTORY:
110110
# Count how many files were actually included
111-
included_files = len([line for line in optimized_content.split('\n') if line.startswith('=' * 48)]) / 2
111+
included_files = int(len([line for line in optimized_content.split('\n') if line.startswith('=' * 48)]) / 2)
112112
summary += f"Files included: {included_files} (optimized for {max_tokens:,} tokens)\n"
113113
elif node.type == FileSystemNodeType.FILE:
114114
summary += f"File: {node.name}\n"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /