From b421597c387f9ddd80f4ada047af5676f0291f63 Mon Sep 17 00:00:00 2001 From: Blake DeMarcy Date: Wed, 3 May 2017 17:35:02 -0500 Subject: [PATCH] remove old hack for string input --- server.py | 3 +-- 1 file changed, 1 insertion(+), 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"