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

@@ -67,7 +67,7 @@ def file_stat(path, filename):
'mtime': file_date_human(s.st_mtime),
'name': filename,
'url': path2url(filename),
'editable': (s.st_size < 10240 and filename.endswith(".txt"))
'editable': (s.st_size < 65536 and filename.endswith(".txt"))
}