From 1192038080a605d847cc53026c7691d856ba8a5e Mon Sep 17 00:00:00 2001 From: vesp Date: Tue, 30 Dec 2025 14:38:25 +0100 Subject: [PATCH] Save substituted values to history instead of variable templates --- src/request_tab_widget.py | 4 ---- src/window.py | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/request_tab_widget.py b/src/request_tab_widget.py index dc33794..3d3c16d 100644 --- a/src/request_tab_widget.py +++ b/src/request_tab_widget.py @@ -735,7 +735,6 @@ class RequestTabWidget(Gtk.Box): """Update visual indicators for undefined variables.""" # Detect undefined variables self.undefined_variables = self._detect_undefined_variables() - print(f"Updating indicators, undefined vars: {self.undefined_variables}") # Update URL entry self._update_url_indicator() @@ -770,9 +769,6 @@ class RequestTabWidget(Gtk.Box): # Iterate through all header rows child = self.headers_listbox.get_first_child() while child: - # Debug: print child type - print(f"Header child type: {type(child).__name__}") - # HeaderRow might be a child of the ListBox row header_row = None if isinstance(child, HeaderRow): diff --git a/src/window.py b/src/window.py index 61b2c9a..cc4733b 100644 --- a/src/window.py +++ b/src/window.py @@ -447,10 +447,10 @@ class RosterWindow(Adw.ApplicationWindow): if tab: tab.response = response - # Create history entry + # Create history entry (save the substituted request with actual values) entry = HistoryEntry( timestamp=datetime.now().isoformat(), - request=request, + request=substituted_request, response=response, error=error )