aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-11 15:31:01 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-11 15:31:01 -0500
commitb731ab69fad4112b126b1f7586e433eb2f21fbcc (patch)
treecdb36c30cd8168061e5ec90e5ba92cb9706cde3a /server.py
parent28680865eec35c7abaa994fa6e76f837f8cb20fe (diff)
downloadbbj-b731ab69fad4112b126b1f7586e433eb2f21fbcc.tar.gz
primitive, awful text formatting
Diffstat (limited to 'server.py')
-rw-r--r--server.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.py b/server.py
index 69d295a..4311227 100644
--- a/server.py
+++ b/server.py
@@ -1,5 +1,5 @@
from src.exceptions import BBJException, BBJParameterError, BBJUserError
-from src import db, schema
+from src import db, schema, formatting
from functools import wraps
from uuid import uuid1
import traceback
@@ -244,6 +244,9 @@ class API(object):
thread = db.thread_get(database, args["thread_id"])
cherrypy.thread_data.usermap = \
create_usermap(database, thread["messages"])
+ if args.get("format") == "sequential":
+ formatting.apply_formatting(thread["messages"],
+ formatting.sequential_expressions)
return thread
Un proyecto texto-plano.xyz