editor for client

This commit is contained in:
ville rantanen
2018-07-24 20:28:00 +03:00
parent c0ccc40d17
commit c004c75f75
3 changed files with 84 additions and 47 deletions

View File

@@ -14,7 +14,7 @@ from utils.utils import *
from utils.crypt import *
__FLEES_VERSION__ = "20180721.1"
__FLEES_VERSION__ = "20180724.0"
app = Flask(__name__)
app.config.from_object(__name__)
# Read config from json !
@@ -251,7 +251,7 @@ def editor(name = None):
content = ""
if os.path.isfile(pathname):
if pathname.endswith(".txt"):
content = open(pathname, 'rt').read(10 * 1024)
content = open(pathname, 'rt').read(65536)
return render_template(
'editor.html',