feat: Print names dict with truncated values
This commit is contained in:
@@ -116,6 +116,21 @@ def main():
|
|||||||
truncated_value = value
|
truncated_value = value
|
||||||
print(f"'{key}': '{truncated_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__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
Reference in New Issue
Block a user