From 6b4f5026f7d94518c8a96aa18e5293f5bc66fdd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 28 Nov 2018 20:36:19 +0100 Subject: [PATCH] donate-cpu-server: show crash history --- tools/donate-cpu-server.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/donate-cpu-server.py b/tools/donate-cpu-server.py index a88e324a1..27d1e61a1 100644 --- a/tools/donate-cpu-server.py +++ b/tools/donate-cpu-server.py @@ -114,6 +114,15 @@ def crashReport(): html += out + '\n' break html += '\n' + + if os.path.isfile('crash-history.txt'): + html += '

history

\n' + html += '
\n'
+        f = open('crash-history.txt')
+        html += f.read()
+        f.close()
+        html += '
' + html += '\n' return html