arkenous / WebTeX-flask

Web-based LaTeX editor and compiler.
GNU General Public License v3.0
3 stars 3 forks source link

Modify correct method #20

Open arkenous opened 8 years ago

arkenous commented 8 years ago

Need to run RedPen server to correct text by redpen.html (Use REST API on RedPen server) is obviously not smart.

Create temporary file which include received text from redpen.html, use redpen command to get result of correction, and return it.

arkenous commented 8 years ago

Format of temporary file name: username+unixtime.txt Get unixtime on python by below code.

import time
unixtime = int(time.time())