aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-05-03 17:35:02 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-05-03 17:35:02 -0500
commitb421597c387f9ddd80f4ada047af5676f0291f63 (patch)
tree15f7077832d19baa3eab2de71beed63be19bcb10 /server.py
parent8cd30321f2671e7dd21f3db3e1c151ffbfc9137d (diff)
downloadbbj-b421597c387f9ddd80f4ada047af5676f0291f63.tar.gz
remove old hack for string input
Diffstat (limited to 'server.py')
-rw-r--r--server.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/server.py b/server.py
index eeebd93..2423026 100644
--- a/server.py
+++ b/server.py
@@ -299,8 +299,7 @@ class API(object):
non-nil, will include a "messages" key with the object, whose sole
content is the original message (post_id 0).
"""
- op = isinstance(args, dict) and args.get("include_op")
- threads = db.thread_index(database, include_op=op)
+ threads = db.thread_index(database, include_op=args.get("include_op"))
cherrypy.thread_data.usermap = create_usermap(database, threads, True)
return threads
thread_index.doctype = "Threads & Messages"
Un proyecto texto-plano.xyz