From 67b751f1c7834c5a1cf5f416b38ef1b899817526 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 11 Apr 2012 21:53:15 +0200 Subject: [PATCH] Write correct statistics when saving data in the GUI client. --- doc/changelog.txt | 2 ++ linkcheck/gui/urlsave.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/changelog.txt b/doc/changelog.txt index 2dbbbb3e..70312d8b 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -12,6 +12,8 @@ Fixes: lookup on Unix systems. - checking: Fix CSV output with German locale. Closes: SF bug #3516400 +- checking: Write correct statistics when saving results in the GUI. + Closes: SF bug #3515980 Features: - cgi: Added a WSGI script to replace the CGI script. diff --git a/linkcheck/gui/urlsave.py b/linkcheck/gui/urlsave.py index 8517a6ea..ae131e7b 100644 --- a/linkcheck/gui/urlsave.py +++ b/linkcheck/gui/urlsave.py @@ -47,6 +47,8 @@ def urlsave (parent, config, urls): for urlitem in urls: do_print = True logger.log_filter_url(urlitem.url_data, do_print) + # inject the saved statistics before printing them + logger.stats = config['logger'].stats logger.end_output()