From a1a8965f7a0e5acde69ecddce7db6c783eb0f001 Mon Sep 17 00:00:00 2001 From: "Tanner Collin (aider)" Date: Thu, 22 May 2025 19:12:28 -0600 Subject: [PATCH] feat: Print names dict with truncated values --- har_parser.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/har_parser.py b/har_parser.py index 5b9d476..76326f1 100644 --- a/har_parser.py +++ b/har_parser.py @@ -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()