feat: Print names dict with truncated values
This commit is contained in:
parent
60a38d30eb
commit
a1a8965f7a
|
@ -116,6 +116,21 @@ def main():
|
|||
truncated_value = value
|
||||
print(f"'{key}': '{truncated_value}'")
|
||||
|
||||
print("\nProcessed names (truncated file paths):")
|
||||
if not names:
|
||||
print("No names were processed and stored.")
|
||||
else:
|
||||
for key, value in names.items():
|
||||
# Assuming value could be None or not a string, though unlikely with current logic
|
||||
if isinstance(value, str):
|
||||
if len(value) > 100:
|
||||
truncated_value = value[:100] + "..."
|
||||
else:
|
||||
truncated_value = value
|
||||
else:
|
||||
truncated_value = str(value) # Convert non-string values to string
|
||||
print(f"'{key}': '{truncated_value}'")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user