summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-04 15:08:00 +0100
committerSimon Rettberg2019-02-04 15:08:00 +0100
commita6640db3fd5d8e3f7defde08f3854803a6299c63 (patch)
tree05fa174605ad4e462c1e1e640c402405ccefdfdc
parentSanitize file names (diff)
downloadbwlp-monitoring-a6640db3fd5d8e3f7defde08f3854803a6299c63.tar.gz
bwlp-monitoring-a6640db3fd5d8e3f7defde08f3854803a6299c63.tar.xz
bwlp-monitoring-a6640db3fd5d8e3f7defde08f3854803a6299c63.zip
Remove pointless copy
-rwxr-xr-xmain.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/main.py b/main.py
index 489c1cc..61c5159 100755
--- a/main.py
+++ b/main.py
@@ -260,9 +260,6 @@ for entry in reversed(logEntries[cut_amount:]):
+ entry.host +']</div></div><div class="log_item_part"><div class="content_item_part_title log_item_part_msg">'
+ entry.msg + '</div></div></div>')
-# Copy the .html file and replace the %CONTENT% to generate the final html file.
-shutil.copyfile('template.html', 'status.html')
-
# Replace the %CONTENT% in the template with the actual html code.
html = open('template.html')
html2 = open('status.html', 'w')