Commit 42cc1643 by Luciano Barletta

Ready for deployment

1 parent 7b8e3866
...@@ -76,6 +76,7 @@ def msg(): ...@@ -76,6 +76,7 @@ def msg():
} }
id = process.store(query) id = process.store(query)
os.system("mv ./" + dir + "/data ./" + dir + "/" + id) os.system("mv ./" + dir + "/data ./" + dir + "/" + id)
return str(id)
@app.route('/cons', methods = ['POST']) @app.route('/cons', methods = ['POST'])
def cons(): def cons():
......
...@@ -41,7 +41,7 @@ class Wpp1(ServiceBase): ...@@ -41,7 +41,7 @@ class Wpp1(ServiceBase):
def send(self,data): def send(self,data):
if data['type'] == Datatypes.text: if data['type'] == Datatypes.text:
f = open("./" + data['dir'] + "/data") f = open("./" + data['dir'] + "/" + str(data['id']))
text = f.read() text = f.read()
f.close() f.close()
result = requests.get(url = Wpp1.URL,params = { 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!