Skip to content

Commit

Permalink
Remove unnecessary log template strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mountainpenguin committed Jan 23, 2016
1 parent 254ad28 commit 2526aa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions htdocs/logHTML.tmpl
Expand Up @@ -20,10 +20,10 @@
<div id="wrapper">
<div id="log_wrapper">
<div id="log_control_wrapper">
<div class="log_control level_1%(selected_1)s" id="log_control_1">ERROR</div>
<div class="log_control level_2%(selected_2)s" id="log_control_2">INFO</div>
<div class="log_control level_3%(selected_3)s" id="log_control_3">WARNING</div>
<div class="log_control level_4%(selected_4)s" id="log_control_4">DEBUG</div>
<div class="log_control level_1 selected" id="log_control_1">ERROR</div>
<div class="log_control level_2 selected" id="log_control_2">INFO</div>
<div class="log_control level_3 selected" id="log_control_3">WARNING</div>
<div class="log_control level_4 selected" id="log_control_4">DEBUG</div>
</div>
<table id="log_table">
<!-- Start Log Content -->
Expand Down
6 changes: 1 addition & 5 deletions modules/server.py
Expand Up @@ -311,12 +311,8 @@ def get(self):
self.set_cookie("sess_id", self.application._pyrtL.sendCookie(self.request.remote_ip))

logHTML = self.application._pyrtLog.html()
selected_1 = " selected"
selected_2 = " selected"
selected_3 = " selected"
selected_4 = " selected"
with open("htdocs/logHTML.tmpl") as template:
self.write(template.read() % locals())
self.write(template.read() % {"logHTML": logHTML})

post = get

Expand Down

0 comments on commit 2526aa6

Please sign in to comment.