diff options
author | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-11 15:31:01 -0500 |
---|---|---|
committer | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-11 15:31:01 -0500 |
commit | b731ab69fad4112b126b1f7586e433eb2f21fbcc (patch) | |
tree | cdb36c30cd8168061e5ec90e5ba92cb9706cde3a /server.py | |
parent | 28680865eec35c7abaa994fa6e76f837f8cb20fe (diff) | |
download | bbj-b731ab69fad4112b126b1f7586e433eb2f21fbcc.tar.gz |
primitive, awful text formatting
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |