Commit 42cc1643 by Luciano Barletta

Ready for deployment

1 parent 7b8e3866
......@@ -76,6 +76,7 @@ def msg():
}
id = process.store(query)
os.system("mv ./" + dir + "/data ./" + dir + "/" + id)
return str(id)
@app.route('/cons', methods = ['POST'])
def cons():
......
......@@ -41,7 +41,7 @@ class Wpp1(ServiceBase):
def send(self,data):
if data['type'] == Datatypes.text:
f = open("./" + data['dir'] + "/data")
f = open("./" + data['dir'] + "/" + str(data['id']))
text = f.read()
f.close()
result = requests.get(url = Wpp1.URL,params = {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!