aboutsummaryrefslogtreecommitdiff
path: root/cgi/template.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/template.py')
-rw-r--r--cgi/template.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/cgi/template.py b/cgi/template.py
index f58e17f..8c3fc19 100644
--- a/cgi/template.py
+++ b/cgi/template.py
@@ -69,19 +69,19 @@ def renderTemplate(template, template_values={}, mobile=False, noindex=False):
"board_long": board["longname"],
"board_type": board["board_type"],
"oek_finish": 0,
- "disable_name": (board["disable_name"] == '1'),
- "disable_subject": (board["disable_subject"] == '1'),
+ "disable_name": board["disable_name"],
+ "disable_subject": board["disable_subject"],
"default_subject": board["subject"],
"postarea_desc": board["postarea_desc"],
"postarea_extra": board["postarea_extra"],
- "allow_images": (board["allow_images"] == '1'),
- "allow_image_replies": (board["allow_image_replies"] == '1'),
- "allow_noimage": (board["allow_noimage"] == '1'),
- "allow_spoilers": (board["allow_spoilers"] == '1'),
- "allow_oekaki": (board["allow_oekaki"] == '1'),
- "archive": (board["archive"] == '1'),
+ "allow_images": board["allow_images"],
+ "allow_image_replies": board["allow_image_replies"],
+ "allow_noimage": board["allow_noimage"],
+ "allow_spoilers": board["allow_spoilers"],
+ "allow_oekaki": board["allow_oekaki"],
+ "archive": board["archive"],
"force_css": board["force_css"],
- "noindex": (board["secret"] == '1'),
+ "noindex": board["secret"],
"useid": board["useid"],
"maxsize": board["maxsize"],
"maxage": board["maxage"],