Open arkenous opened 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.
Format of temporary file name: username+unixtime.txt Get unixtime on python by below code.
username
unixtime
import time unixtime = int(time.time())
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.